Repository navigation
Windows OCR: read large pages in tiles, at size and enlarged, for Redact and Copy Text - #368
Merged
Merged
Conversation
A large page read whole can lose most of its text, unpredictably, so above 1600 px Windows now reads in the tiles Vision uses. Each tile, or a smaller image whole, is read at its size and enlarged twice over with WIC's Fant, and the readings are merged. On 13 text-dense 4K captures, items Redact covers go from 59% to 84%, with no false rects, at about 4.6 s a page. When readings of a word disagree, the merge keeps the one the matcher recognizes; without that the recall was 76%. Two readings of one region keep the first's line order, so a column stays together. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
With the date rules in, Cubic covers 87% of the items on the 13 captures to Fant's 84%, at about 5.5 s a page. One false rect in the 13 pages, on a date. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Windows OCR for Redact and Copy Text now reads large pages in tiles, at their own size and enlarged, so small text on 4K captures is found reliably. This is the Windows counterpart of #367, which covers Linux/tesseract.
What changes
TextRecognizerProbe_test.mcovers the merge.Results (Windows 11, 100% scale)
Coverage: on 13 text-dense 4K captures, Redact now covers 87% of items, up from 59% before this change. It makes one false rect across all 13 pages, on a date. It takes about 5.5–6 s a page.
In-app check of
c91498b, through Copy Text and Redact:Copy Text's output matched the test harness output exactly.
Test suite: everything passes except the existing title test. It fails on Windows because GNUstep reads the Windows time zone as GMT, which is unrelated to this change; a local test-only fix exists.
Known limit: grey 11 px text
Small grey text, 11 px grey on white, is still only partly covered. On that page Redact drew 176 rects for 270 items. The harness counted 153 of the 270 as fully covered. So Redact can still miss parts of very small, low-contrast text on Windows, and users should check redactions of such text by eye.
Branch head:
c91498bona41c9dd.🤖 Generated with Claude Code
https://claude.ai/code/session_01AEr1tY2QmxWFSoDkDHs2DC