Skip to content

[feature] Add whitelist hook#2077

Merged
felixdittrich92 merged 5 commits into
mindee:mainfrom
felixdittrich92:whitelist-fet
Jun 19, 2026
Merged

[feature] Add whitelist hook#2077
felixdittrich92 merged 5 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 99.10714% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 96.97%. Comparing base (b45b899) to head (fcf080f).

Files with missing lines Patch % Lines
doctr/models/utils/pytorch.py 99.10% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2077      +/-   ##
==========================================
+ Coverage   96.93%   96.97%   +0.03%     
==========================================
  Files         156      156              
  Lines        7415     7527     +112     
==========================================
+ Hits         7188     7299     +111     
- Misses        227      228       +1     
Flag Coverage Δ
unittests 96.97% <99.10%> (+0.03%) ⬆️

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 marked this pull request as ready for review June 19, 2026 12:21
@felixdittrich92 felixdittrich92 merged commit 9dbe99c into mindee:main Jun 19, 2026
47 of 48 checks passed
@felixdittrich92 felixdittrich92 deleted the whitelist-fet branch June 19, 2026 12:29
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