You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using product in python and latest version of openCV and pytessaract.
After a ton of other preprocessing using openCV, I end up with a cropped image with just one digit on it (as intended). I tried everything from sharpening, blurring, filtering but the gist is that any image of the number 5 (see image as attachment) is either not recognized or is recognized as a 2. But it is clearly a 5. This is what I us:
ocrStr = pytesseract.image_to_string(thr, config='--oem 3 --psm 6 digits') where thr is the image attached. I also tried with any iteration of psm 10, white listing numbers etc.
No clue why this is happening. Any insight would be very appreciated.
Expected Behavior
No response
Suggested Fix
No response
tesseract -v
No response
Operating System
macOS 11 Big Sur
Other Operating System
No response
uname -a
No response
Compiler
No response
CPU
No response
Virtualization / Containers
No response
Other Information
No response
The text was updated successfully, but these errors were encountered:
Current Behavior
Using product in python and latest version of openCV and pytessaract.
After a ton of other preprocessing using openCV, I end up with a cropped image with just one digit on it (as intended). I tried everything from sharpening, blurring, filtering but the gist is that any image of the number 5 (see image as attachment) is either not recognized or is recognized as a 2. But it is clearly a 5. This is what I us:
ocrStr = pytesseract.image_to_string(thr, config='--oem 3 --psm 6 digits') where thr is the image attached. I also tried with any iteration of psm 10, white listing numbers etc.
No clue why this is happening. Any insight would be very appreciated.
Expected Behavior
No response
Suggested Fix
No response
tesseract -v
No response
Operating System
macOS 11 Big Sur
Other Operating System
No response
uname -a
No response
Compiler
No response
CPU
No response
Virtualization / Containers
No response
Other Information
No response
The text was updated successfully, but these errors were encountered: