-
Notifications
You must be signed in to change notification settings - Fork 9.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tesseract doesn't always recognise diacritics #4276
Comments
eng.traineddata was not trained with diacritics (see https://github.com/tesseract-ocr/langdata_lstm/blob/main/eng/eng.unicharset) and therefore cannot recognize them. Latin.traineddata was trained with some diacritics (see https://github.com/tesseract-ocr/langdata_lstm/blob/main/script/Latin/Latin.unicharset) and therefore works better with your text. As far as I see "ő" is missing in its supported characters. So your results are expected with the given models, and it's not a Tesseract issue. "ő" is included in hun.traineddata, so you could try Latin+hun, but training a new model would be better. |
Tried with Hungarian and Latin too, didn't always work. And if training the new model is the only way forward, I'll have to do it myself, or it can be added to the existing Tesseract models? |
@arsinclair , your question is a bit vague. You can always take an official model ( If you want to publish your model for the world, you will have to talk tesseract maintainers. Tesseract for English is aware only a few diacritics. I find the choice of the latter weird but this is the reality. |
Current Behavior
I'm using Tesseract indirectly as part of OCRmyPDF and I'm coming here from this issue.
When OCR'ing English (Latin) text with diacritics it doesn't always recognise them. The diacritics in my document are part of surnames originating from Hungary and Belgium.
I've tried with just English, English + Hungarian dictionaries, also tried with Latin script (which has extended character map) to no avail.
The words:
poéme
,pathétique
,animé
are recognised.The words:
Ysaÿe
,Jenő
,Petőfi
, etc. are not recognised.The words
csárdás
,Telmányi
,Dvořák
are recognised only with Latin script.Expected Behavior
The diacritics should be recognised.
Source files
tesseract -v
Operating System
Debian Testing (Bookworm)
uname -a
The text was updated successfully, but these errors were encountered: