mirror of
https://github.com/PR0M3TH3AN/unredact.git
synced 2026-10-27 08:40:29 +00:00
51ef0303221a97388e4ffce12b909d937f17979e
Introduce llm_detect.py that sends OCR lines to Claude Haiku to identify redaction locations via broken text patterns (garbled chars, brackets, pipes). The LLM returns boundary words which are mapped back to pixel positions using OCR character data. Includes comprehensive tests covering single/multiple redactions, line start/end edge cases, and error handling. 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%