Skip to content

[Feat] Add layout masking#2109

Merged
felixdittrich92 merged 2 commits into
mindee:mainfrom
felixdittrich92:layout-masking
Jul 9, 2026
Merged

[Feat] Add layout masking#2109
felixdittrich92 merged 2 commits into
mindee:mainfrom
felixdittrich92:layout-masking

Conversation

@felixdittrich92

@felixdittrich92 felixdittrich92 commented Jul 9, 2026

Copy link
Copy Markdown
Collaborator

This PR:

  • Add ignore_regions to allow masking layout model detected regions before further proc
  • Add cor tests

@felixdittrich92 felixdittrich92 added this to the 1.1.0 milestone Jul 9, 2026
@felixdittrich92 felixdittrich92 self-assigned this Jul 9, 2026
@felixdittrich92 felixdittrich92 added module: models Related to doctr.models ext: tests Related to tests folder type: new feature New feature topic: layout detection Related to document layout detection labels Jul 9, 2026
@codecov

codecov Bot commented Jul 9, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 94.44444% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 96.65%. Comparing base (369f0aa) to head (ac43fa7).

Files with missing lines Patch % Lines
doctr/models/predictor/base.py 86.66% 2 Missing ⚠️
doctr/models/_utils.py 95.23% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2109      +/-   ##
==========================================
- Coverage   96.65%   96.65%   -0.01%     
==========================================
  Files         166      166              
  Lines        8707     8750      +43     
==========================================
+ Hits         8416     8457      +41     
- Misses        291      293       +2     
Flag Coverage Δ
unittests 96.65% <94.44%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@felixdittrich92
felixdittrich92 merged commit dfb8f7c into mindee:main Jul 9, 2026
54 of 57 checks passed
@felixdittrich92
felixdittrich92 deleted the layout-masking branch July 9, 2026 14:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ext: tests Related to tests folder module: models Related to doctr.models topic: layout detection Related to document layout detection type: new feature New feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant