Enlarging images - much better performance #791
staniPetrox
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey,
I used easyocr and noticed the poor performance. However I found a really quick fix for this, I just enlarged it and the recognition was much better. I used the following code for this:
def png_lookup(img_path, reader): img = Image.open(img_path) img.size img = img.resize((img.size[0]*10, img.size[1]*10)) img.save("temp.png") return reader.readtext('temp.png')
I think this would be a great feature, worked for me at least.
Beta Was this translation helpful? Give feedback.
All reactions