Skip to content

fix(detect): Lower occlusion threshold from 80% to 75%#219

Open
mlissner wants to merge 2 commits into
fix-toc-bbox-highlight-false-positive-20260418from
fix-low-occlusion-threshold-20260418
Open

fix(detect): Lower occlusion threshold from 80% to 75%#219
mlissner wants to merge 2 commits into
fix-toc-bbox-highlight-false-positive-20260418from
fix-low-occlusion-threshold-20260418

Conversation

@mlissner
Copy link
Copy Markdown
Member

Summary

Some PDFs have black redaction bars that are 12pt tall while text spans are 14pt, giving ~79% occlusion per character. The 80% threshold rejected these as "not enough overlap."

Lowering to 75% catches these while still filtering characters that barely clip a rectangle edge (the partial_intersections_ok test still passes at 0 chars).

Tested on this 24-page filing — goes from 0 to 16 detections.

Also cleans up redundant changelog entries (same-release feature + fix consolidated).

Test plan

🤖 Generated with Claude Code

mlissner and others added 2 commits April 18, 2026 09:56
Some PDFs have black redaction bars that are 12pt tall while text
spans are 14pt, giving ~79% occlusion per character. The 80%
threshold rejected these. Lowering to 75% catches them while
still filtering characters that barely clip a rectangle edge.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Real-world filing where black bars are 12pt tall but text is 14pt.
Also cleans up redundant changelog entries for same-release fixes.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@mlissner mlissner marked this pull request as ready for review April 18, 2026 16:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant