mirror of
https://github.com/PR0M3TH3AN/unredact.git
synced 2026-10-27 08:40:29 +00:00
8b5511e7fd5ca1f4b21c432466c5c3bc6cb60b96
Adds a new detect_font_masked() function that masks redaction boxes to white (255) before running pixel-based font detection on the full line crop. This replaces the fragile approach of cropping just the left/right portion of a line, which lost signal from narrow crops and coordinate mismatches. The Dice-based scoring naturally ignores masked (white) regions since they contain no ink pixels. Co-Authored-By: Claude Opus 4.6 <[email protected]>
Languages
Python
65.5%
JavaScript
16.7%
Rust
10.6%
CSS
4.2%
HTML
1.8%
Other
1.2%