Idea from ds4v/NomNaOCR: add the threshold mask to the original image so the
background saturates to white while strokes keep their grey levels. Both modes
lose to doing nothing on 5 scanned pages (syllable OOV 2.11% vs 3.74% and
5.60%), so the default stays off - shipped as an option so it can be rechecked
on other scans.
needs_enhance fired on 84% of pages because yellowed paper counts as "coloured
background", and enhance itself halves the resolution, hard-binarises and
erases 93.2% of blobs in the 20-30px band - which is where tone marks live.
Every metric gets worse with it on (syllable OOV 4.22% -> 7.31%).
Ensemble of 5 models is off by default: acc 0.3067 -> 0.3823 at 5.2x the time.
Also adds annotated-image output to the API.
Delete fix_register_beam.py, patch_beam_search.py, usage_examples.py; remove module docstrings, section banners, and inline explanatory comments from all source files