Improve OCR on pale grey / low-res dot-matrix print #2

Merged
ilia merged 1 commits from feature/ocr-grey-print-upscale into master 2026-07-13 22:16:15 -05:00
Owner

Summary

  • Add Lab gamma darkening (darken_print) and gamma step in enhance_for_ocr for pale grey / TD-style ribbon ink
  • Optional 1.5× cubic upscale for crops under 1800px (skipped on sharp ~2k captures)
  • Add .gitleaks.toml so pre-commit secret scanning can load default rules

Test plan

  • pytest tests/test_enhance.py (5 passed locally)
  • No Gitea Actions workflows configured on this repo; master branch protection has status checks disabled
## Summary - Add Lab gamma darkening (`darken_print`) and gamma step in `enhance_for_ocr` for pale grey / TD-style ribbon ink - Optional 1.5× cubic upscale for crops under 1800px (skipped on sharp ~2k captures) - Add `.gitleaks.toml` so pre-commit secret scanning can load default rules ## Test plan - [x] `pytest tests/test_enhance.py` (5 passed locally) - [ ] No Gitea Actions workflows configured on this repo; master branch protection has status checks disabled
ilia added 1 commit 2026-07-13 22:15:20 -05:00
Add Lab gamma darkening and optional 1.5x cubic upscale (crops under 1800px) so faint TD-style ribbon ink is readable without slowing sharp captures. Add .gitleaks.toml so the pre-commit secret scan can load default rules.
ilia force-pushed feature/ocr-grey-print-upscale from a253db6adb to 764a0626b5 2026-07-13 22:16:04 -05:00 Compare
ilia merged commit b11f46b00f into master 2026-07-13 22:16:15 -05:00
ilia deleted branch feature/ocr-grey-print-upscale 2026-07-13 22:16:15 -05:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: ilia/PaperPod#2
No description provided.