Skip to content

Restrict Text Recognization to Digit Only #1876

Answered by felixdittrich92
jidalii asked this question in Q&A
Discussion options

You must be logged in to vote

However, you have to "know what you are doing there" with a LogitsProcessor... I think not many people would use that or it needs extensive explanation and/or help

something like ocr_predictor(.. whitelist=VOCABS["french"] + VOCABS["german"]) for example seems to be more user friendly ..but would require a more robust solution / logic on our end 😅

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@frgfm
Comment options

frgfm Mar 5, 2025
Maintainer

@felixdittrich92
Comment options

@felixdittrich92
Comment options

Answer selected by jidalii
@jidalii
Comment options

@felixdittrich92
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants