'pytesseract-ocr' sometimes shows WRONG Numbers , which were extracted from an Image (URGENT)

193 views
Skip to first unread message

VV Kumar

unread,
Dec 3, 2020, 5:11:16 AM12/3/20
to tesseract-ocr
Hi 
I am working on an Python Project where, I supposed to extract some numbers from an Image(i.e. Invoice) , which is input to my pytesseract module and I am using image_to_string() function. 
pytesseract sometimes shows wrong Numbers as output , which were extracted from an Image. 
 
(I am not preprocessing Image, since image is in grayscale type and is in good condition)

My pytesseract code:

custom_config6 = r'--oem 3 --psm 6 outputbase digits'
print(pytesseract.image_to_string(crop_img, config=custom_config6))

Can anyone help me, how to approach further, as I'm in middle of an very Urgent assignment.

Thanks in advance

Warm Regards
VVKumar

Reply all
Reply to author
Forward
0 new messages