JaidedAI / EasyOCR

Ready-to-use OCR with 80+ supported languages and all popular writing scripts including Latin, Chinese, Arabic, Devanagari, Cyrillic and etc.
https://www.jaided.ai
Apache License 2.0
24.56k stars 3.17k forks source link

easyocr terminates without any error but don't output anything #704

Open pengxiao-song opened 2 years ago

pengxiao-song commented 2 years ago
def main(args):
    reader = easyocr.Reader(['en'], gpu=False)
    message = reader.readtext('images/a.jpg', detail=0)
    print(message)

The output in the terminal is:

Using CPU. Note: This module is much faster with a GPU.

image

I am so confused, so could anyone help me? Thank you!

Langlais115 commented 2 years ago

Did you try with another image? Can you share the one you use for testing (if there is nothing confidential), so I can test it on my side?

esraa-abdelmaksoud commented 1 year ago

I have the same issue even with minor code. I've also tried to remove the GPU parameter and go for "en" only. Furthermore, I tried several images and tried opening the images first using OpenCV. Screenshot from 2023-05-27 07-07-42 Screenshot from 2023-05-27 07-08-27

shhossain commented 1 year ago

same issue.

phelipecomph commented 1 year ago

Same here and only with some PCs. I do not recognize difference between pcs

Qamar2315 commented 1 year ago

Same issue... The program just gets terminate with out any error. One my one pc it works and other just terminates without printing results and also not throwing any error

kincho4 commented 1 year ago

Same issue here

Nosratimrn commented 1 year ago

same issue on my laptop. can it be related to having integrated gpu on pc?

GeorgiiBurda commented 11 months ago

same issue. some of my pcs work, some do not. it is very annoying since there is no error, it just returns nothing for me. I have tried 1.6.2 and 1.7.1, I build executable using pyinstaller, and trying to get some results back, but they are empty. And not only that, it terminates the process, so when I am trying to read the data from the console, it is gone. I also use models by path, so I do not need to download them.

iazk0 commented 11 months ago

I have the same issue but only for certain files. I am processing about 200 files using the EasyOCR and for about 2/3 of the images the OCR does not create any output.

srBruning commented 11 months ago

I have the same problem. Did you find any solution?

elisegarnett commented 10 months ago

same issue. it works perfectly in a notebook, while returning empty results on an ec2 instance that has virtual computing (it recognizes the gpu). Is there an environment issue here? It is bewildering that the exact same dataset and code generates wildly different results depending from where its run.

robootcz commented 10 months ago

I have the same problem, I tried other languages too, without any output or error.

ArqamNisar commented 9 months ago

I have the same problem. When I try to do this on my personal computer, it works fine. But when I try to do this on a remote PC accessed through anydesk, it doesn't generate any error and there is no output as well.

ArqamNisar commented 9 months ago

I have tried downgrading opencv as well as easyocr and I have Python310 as well.

adeelshuaib commented 4 months ago

facing the same issue when accessing the pc via RDP or VNC. it works fine when using directly on system

razorext2 commented 2 months ago

i face the same issue, check your cpu support. easyocr wont give any output of the reader readtext if you using CPU older than haswell series. ive try my codes to several computers using different cpu, like i7 3770, i5 4570, i5 7200, i5 10500, and easyocr doesnt work with i7 3770. maybe u can use GPU that support cuda rather than old CPU, you can set the gpu to True when initializing the reader.

yash373 commented 2 weeks ago

same issue