Single character OCR not working

71 views
Skip to first unread message

崇賢陸

unread,
Jan 28, 2019, 2:50:30 AM1/28/19
to tesseract-ocr
I've set the psm to 10 and removed the alpha channel. However, I still couldn't get the following image (300 dpi) recognized as 'K'. 

There's no output from the following command:
print(pytesseract.image_to_string(Image.open(args.input), lang='eng', config='-variables load_system_dawg off false -load_freq_dawg false -psm 10'))

Please help! Any hints will be greatly appreciated!! 

character_0.png





Zdenko Podobny

unread,
Feb 1, 2019, 3:02:26 PM2/1/19
to tesser...@googlegroups.com
I am not sure what version of tesseract you have installed, but current version (build from source) produce "K" as output for several psm (6,7,8, 10)... e.g. 

tesseract unnamed.png - --psm 6
Warning: Invalid resolution 0 dpi. Using 70 instead.
K
 
So first check tesseract version

Zdenko


po 28. 1. 2019 o 8:50 崇賢陸 <paul8...@gmail.com> napísal(a):
--
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 tesseract-oc...@googlegroups.com.
To post to this group, send email to tesser...@googlegroups.com.
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/e64e5b63-d21e-4d17-9149-3357e7e2c79d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages