EasyOCR icon indicating copy to clipboard operation
EasyOCR copied to clipboard

easyocr terminates without any error but don't output anything

Open pengxiao-song opened this issue 3 years ago • 23 comments

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!

pengxiao-song avatar Apr 10 '22 09:04 pengxiao-song

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?

Langlais115 avatar Apr 14 '22 06:04 Langlais115

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

esraa-abdelmaksoud avatar May 27 '23 04:05 esraa-abdelmaksoud

same issue.

shhossain avatar Jul 24 '23 16:07 shhossain

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

phelipecomph avatar Jul 29 '23 17:07 phelipecomph

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

Qamar2315 avatar Sep 05 '23 17:09 Qamar2315

Same issue here

kincho4 avatar Sep 14 '23 17:09 kincho4

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

Nosratimrn avatar Oct 27 '23 11:10 Nosratimrn

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.

GeorgiiBurda avatar Dec 05 '23 11:12 GeorgiiBurda

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.

iazk0 avatar Dec 13 '23 07:12 iazk0

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

srBruning avatar Dec 20 '23 20:12 srBruning

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.

elisegarnett avatar Jan 12 '24 21:01 elisegarnett

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

robootcz avatar Jan 14 '24 15:01 robootcz

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 avatar Jan 25 '24 08:01 ArqamNisar

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

ArqamNisar avatar Jan 25 '24 08:01 ArqamNisar