Thank you Aaron for the information, it was an improvement, I'm attaching
one of the png files that I read. (I have 200)
It is interesting how It is still not reading every file 100% correctly. My
script counts the digits and sometimes it misses one of them or it calls a
1 a 15.
Maybe I'm expecting perfection from computer vision and that's just not the
case!
Thanks again

Bill Upham

On Sat, Mar 14, 2020 at 3:03 PM Aaron Stewart <[email protected]>
wrote:

>
> roi = cv2.resize(roi, None, fx=2, fy=2)
> _, roi = cv2.threshold(roi, 128+64, 255, cv2.THRESH_BINARY)
> roi = cv2.GaussianBlur(roi, (3,3), 0)
> text_detected = image_to_string(roi, config="--psm 10 --oem 3
> tessedit_char_whitelist=0123456789", )
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/tesseract-ocr/2ca084e4-aae6-423e-b359-a472e00579e6%40googlegroups.com
> <https://groups.google.com/d/msgid/tesseract-ocr/2ca084e4-aae6-423e-b359-a472e00579e6%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tesseract-ocr/CAF5KrqB3HiPT3cKP6QLUR4u%2Bu3W1B7VbdUfKLfBYs-HnumwZWg%40mail.gmail.com.

Reply via email to