Skip to content

[feature] Add whitelist hook#2077

Draft
felixdittrich92 wants to merge 4 commits into
mindee:mainfrom
felixdittrich92:whitelist-fet
Draft

[feature] Add whitelist hook#2077
felixdittrich92 wants to merge 4 commits into
mindee:mainfrom
felixdittrich92:whitelist-fet

Conversation

@felixdittrich92

Copy link
Copy Markdown
Collaborator

This PR:

  • Add hook to handle recognition whitelisting with strategies
  • Add corr tests & documentation

@felixdittrich92 felixdittrich92 added this to the 1.1.0 milestone Jun 18, 2026
@felixdittrich92 felixdittrich92 self-assigned this Jun 18, 2026
@felixdittrich92 felixdittrich92 added topic: documentation Improvements or additions to documentation module: models Related to doctr.models ext: tests Related to tests folder framework: pytorch Related to PyTorch backend topic: text recognition Related to the task of text recognition type: new feature New feature labels Jun 18, 2026
@felixdittrich92 felixdittrich92 changed the title Add whitelist feature [feature] Add whitelist hook Jun 18, 2026
@felixdittrich92 felixdittrich92 linked an issue Jun 18, 2026 that may be closed by this pull request
@codecov

codecov Bot commented Jun 18, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 93.04348% with 8 lines in your changes missing coverage. Please review.
✅ Project coverage is 96.85%. Comparing base (b45b899) to head (d5bb0ac).

Files with missing lines Patch % Lines
doctr/models/utils/pytorch.py 93.04% 8 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2077      +/-   ##
==========================================
- Coverage   96.93%   96.85%   -0.09%     
==========================================
  Files         156      156              
  Lines        7415     7530     +115     
==========================================
+ Hits         7188     7293     +105     
- Misses        227      237      +10     
Flag Coverage Δ
unittests 96.85% <93.04%> (-0.09%) ⬇️

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.

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 framework: pytorch Related to PyTorch backend module: models Related to doctr.models topic: documentation Improvements or additions to documentation topic: text recognition Related to the task of text recognition type: new feature New feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Need the ability to blacklisting/whitelisting of characters

1 participant