We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi there,
I think there are few issues with vertical words.
Shouldn't this function https://github.com/JaidedAI/EasyOCR/blob/master/easyocr/easyocr.py#L344 output max_width as well in order to update max_width = max(max_width, imgH) in the next line ? It seems that if there is a long vertical word then it's capped by imgH and recognition is usually wrong.
max_width
max_width = max(max_width, imgH)
Also, I realized that images are cropped and resized in here https://github.com/JaidedAI/EasyOCR/blob/master/easyocr/easyocr.py#L341 based on their ratio which makes long image crops, that is h >> w, very small (their width is squeezed a lot). Then, these resized images are rotated (90, 180 and 270) in https://github.com/JaidedAI/EasyOCR/blob/master/easyocr/easyocr.py#L344. I think the images should be rotated before they get resized.
The text was updated successfully, but these errors were encountered:
This can be closed now that the PR is merged?
Sorry, something went wrong.
Yes, thank you.
No branches or pull requests
Hi there,
I think there are few issues with vertical words.
Shouldn't this function https://github.com/JaidedAI/EasyOCR/blob/master/easyocr/easyocr.py#L344 output
max_width
as well in order to updatemax_width = max(max_width, imgH)
in the next line ? It seems that if there is a long vertical word then it's capped by imgH and recognition is usually wrong.Also, I realized that images are cropped and resized in here https://github.com/JaidedAI/EasyOCR/blob/master/easyocr/easyocr.py#L341 based on their ratio which makes long image crops, that is h >> w, very small (their width is squeezed a lot). Then, these resized images are rotated (90, 180 and 270) in https://github.com/JaidedAI/EasyOCR/blob/master/easyocr/easyocr.py#L344. I think the images should be rotated before they get resized.
The text was updated successfully, but these errors were encountered: