Issue with readtextlang
I am trying to test the new function readtextlang() using Python3. Get error:
result = reader.readtextlang("test.png")
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/easyocr/easyocr.py", line 447, in readtextlang for filename in os.listdir(directory): FileNotFoundError: [Errno 2] No such file or directory: 'characters/'
Is there a workaround?
Are you sure the path is correct
Same issue here..That function requires a folder named "characters/".. but what should we put in that folder ?
Same issue here..That function requires a folder named "characters/".. but what should we put in that folder ?
I was reading the API documentation and couldn't find that function. Could you tell me where can I find it?
I am trying to test the new function readtextlang() using Python3. Get error:
result = reader.readtextlang("test.png")File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/easyocr/easyocr.py", line 447, in readtextlang for filename in os.listdir(directory): FileNotFoundError: [Errno 2] No such file or directory: 'characters/'
Is there a workaround?
man why the hell are you using EasyOCR in python 3.9, switch to 3.8.2 it's more stable as some of the packages from EasyOCR aren't made for 3.9+
I am trying to test the new function readtextlang() using Python3. Get error:
result = reader.readtextlang("test.png")File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/easyocr/easyocr.py", line 447, in readtextlang for filename in os.listdir(directory): FileNotFoundError: [Errno 2] No such file or directory: 'characters/'
Is there a workaround?
I was reading the the easyocr.py and found it. Could be because there is no Character folder there. Secondly, in Line 177, in easyocr.py, the attribute self.character hints to get the model of the characters. You can try putting those models there - https://www.jaided.ai/easyocr/modelhub/