Should be able to select part of an image and get the OCR text for just that region
The OCR tool already has an API for this, so it's a matter of building a suitable client-side UI into the PRP page editor.
Inductiveload | |
Nov 3 2021, 10:35 AM |
F34730274: 2021-11-04_160914_454x158_screenshot.png | |
Nov 4 2021, 4:09 PM |
F34726990: 2021-11-01_191021_640x649_screenshot.png | |
Nov 3 2021, 10:39 AM |
Should be able to select part of an image and get the OCR text for just that region
The OCR tool already has an API for this, so it's a matter of building a suitable client-side UI into the PRP page editor.
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Open | None | T276530 JumpToFile: tracking | |||
Resolved | None | T276042 JumpToFile: make high-res loading optional and add offset | |||
Stalled | None | T276052 Make page-carousel icon zones shareable, generic areas for multi-script use | |||
Open | Feature | None | T294903 ProofreadPage: Implement region selection UI for the OCR tool directly in the PRP page editor | ||
Resolved | Inductiveload | T288141 ProofreadPage: use OpenSeadragon for the Page NS image viewer | |||
Resolved | Yash4357 | T283917 Add zoom and pan to the Pagelist Widget | |||
Resolved | BUG REPORT | Inductiveload | T295662 OpenSeaDragon (OSD) button tooltips are not translated |
Change 736203 had a related patch set uploaded (by Inductiveload; author: Inductiveload):
[mediawiki/extensions/ProofreadPage@master] Add image region selection module to ProofreadPage editor
The implementation of this is basically done, it needs the OSD viewer to be enabled in the Page NS.
Not quite sure about the ideal UI for the toggle button, but it at least is functional as shown:
How about:
Perhaps it'd also need a 'select all' or 'remove region' button, akin to the reset-zoom one.
@nayoub might have an opinion; I'm not sure if this was covered in the original designs for OCR?
@Samwilson I don't think the buttons are necessary because "select all" is the same as just turning the region selector off.
Changing the text is nice. Note, it will make the button change size and anything on the left of it would jump about. But there's nothing there at the moment, and the viewport control area is on the right.
You're right, if it's a toggle button then it's easy to see that it's on or off; that's great.
The jumping of the button is a bit annoying, but I think it's sort of okay given that the cursor won't be on it when it happens and as you say there's nothing to the left of it.
Change 736997 had a related patch set uploaded (by Inductiveload; author: Inductiveload):
[mediawiki/extensions/Wikisource@master] OCR: Use the PRP region selector to select regions for OCR
Test wiki created on Patch Demo by Inductiveload using patch(es) linked to this task:
Test wiki on Patch Demo by Inductiveload using patch(es) linked to this task was deleted:
Test wiki created on Patch Demo by Inductiveload using patch(es) linked to this task:
Test wiki on Patch demo by Inductiveload using patch(es) linked to this task was deleted: