I'm trying to set the tessedit_char_whitelist but it does not work in 
tesseract 4 so I read here

https://github.com/tesseract-ocr/tesseract/issues/751#issuecomment-423521780

from amitdo that I need to use --oem 0. I put in the following syntax

str4 = pytesseract.image_to_string(Image.open(str3),
    config='--oem 0 -c 
tessedit_char_whitelist=0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabdefghijklmnopqrstuvwxyzḥś')


and now I get the following error message:



pytesseract.pytesseract.TesseractError: (1, "Failed loading language 'eng' 
Tesseract couldn't load any languages! Could not initialize tesseract.")


-- 
You received this message because you are subscribed to the Google Groups 
"tesseract-ocr" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tesseract-ocr.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tesseract-ocr/f9c4e79d-214f-4b71-a135-c35801e28d7f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to