Files
OCR/backend/app
egg 9437387ef1 fix: add IoU text coverage check and page boundary validation
Vector rectangles:
- Add page boundary check (skip out-of-bounds rectangles)
- Clip rectangles to page boundaries

Covering images:
- Add page boundary check (skip out-of-bounds images)
- Add IoU-based text coverage verification
- Only report images that actually cover text (>= 50% word coverage)
- Add covered_text_count to detection results

This reduces false positives from black logos or decorative images
that don't actually cover any text content.

Test results (edit3.pdf):
- Before: 10 covering images detected
- After: 6 covering images detected (4 filtered - no text coverage)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-04 07:48:38 +08:00
..
2025-11-12 22:53:17 +08:00