New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Does not recognize digit '7' #254
Comments
try using allowlist = '0123456789' |
@rkcosmos should have mentioned that I tried that, without success. Result is the same as above, minus the |
one possible workaround is telling EasyOCR to use different model. For example, if you use Note that EasyOCR is probably too general for your use case. For Sudoku, there might be better open source digit recognition model. |
Tried both |
I tried reducing |
@poonyapat good suggestion. using your settings, |
how to set blur ? can you give example |
I also encountered this issue and blurring helped. Here's a full example. import cv2 # opencv-python==4.5.2.52
import easyocr # easyocr==1.3.2
img1 = cv2.imread("test2.png")
img2 = cv2.blur(img1, (3,3))
reader = easyocr.Reader(["en"])
results1 = reader.readtext(img1, allowlist="0123456789")
results2 = reader.readtext(img2, allowlist="0123456789")
print(results1) # []
print(results2) # [([[26, 0], [50, 0], [50, 30], [26, 30]], '7', 0.9999988079074598)] |
I also encountered this issue and mag_ratio=2 worked.
|
I've been trying to read some Sudokus and so far all digits have been recognized except 7.
Is this a font issue maybe? All the images I have tried, no 7 was recognized.
Edit: Maybe related #130
Example:
Link to the image
The text was updated successfully, but these errors were encountered: