preprocessing: binarize defaults OFF — measured accuracy win on three… #1
+168
−14
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.
… collections (v0.8.8)
Tesseract 5's LSTM engine thresholds internally and reads grayscale better than anything we hand it pre-binarized. Our adaptive window was flipping background paper grain to ink, which Tesseract emitted as stray punctuation ('.', '|', ':') and glued onto real words ('the.', 'of.').
Measured mean WC, adaptive threshold ON -> OFF:
Token-level diffing confirms the words that disappear are exactly those artifacts while real words are gained, so the lower total word count after the change is noise leaving, not text lost.
Found by the first production pilot, MSA00018 Cornell Bell papers. Outputs produced before this commit were binarized and score lower than a re-run would; re-OCR before upload, same caveat as the pre-v0.8.3 frame fix.