EasyOCR terminates without error (pyinstaller .exe build)
Hello,
I have a ocr gui application which has easyocr in it. When I ran the project from pyCharm, it works without any problem. However when I build the project with pyinstaller to an exe form, other ocr algorithms work but easyOCR terminates without showing any error.
from easyocr import Reader
print("[INFO] OCR'ing input image...")
reader = Reader(langs, gpu=opt.gpu > 0)
results = reader.readtext(image) #Terminates in this line
Here's my log output.
Root directory = E:\dist\main main.py While...main_event: imgSelectButton main.py local_mode initiate main.py While...main_event: Start main.py local_mode initiate [INFO] OCR'ing with the following languages: ['en'] [INFO] OCR'ing input image...
Progress: |--------------------------------------------------| 0.0% Complete
Progress: |--------------------------------------------------| 0.1% Complete
Progress: |--------------------------------------------------| 1.2% Complete
Progress: |--------------------------------------------------| 1.3% Complete
Progress: |--------------------------------------------------| 1.3% Complete
Progress: |--------------------------------------------------| 1.4% Complete
Progress: |--------------------------------------------------| 1.5% Complete
Progress: |--------------------------------------------------| 1.6% Complete
Progress: |--------------------------------------------------| 1.7% Complete
Progress: |--------------------------------------------------| 1.8% Complete
Progress: |--------------------------------------------------| 1.9% Complete
Progress: |--------------------------------------------------| 2.0% Complete
Did you find any solution?