EasyOCR icon indicating copy to clipboard operation
EasyOCR copied to clipboard

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

Open parvinders347 opened this issue 1 year ago • 2 comments

Hi,

It is bug or something wrong with my cpu why its giving me empty output?

My Code:

import cv2 import easyocr

reader = easyocr.Reader(['en', 'hi'], gpu=False)

image_path = r"yoboyS_20230522065533539_.jpg" image = cv2.imread(image_path)

if image is None: print(f"Error: Could not read the image from {image_path}") else:

image_rgb = cv2.cvtColor(image, cv2.COLOR_BGR2RGB)


results = reader.readtext(image_rgb)


for bbox, text, prob in results:
    print(f"Detected text: '{text}' with confidence: {prob:.2f}")
    

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

image

parvinders347 avatar Nov 30 '24 16:11 parvinders347

I think is has nothing to do with CPU. Debug your code and image step by step.

romanvelichkin avatar Dec 09 '24 02:12 romanvelichkin

Going to guess this is related to #1323

I'm getting it as well as soon as I try to instantiate the reader with gpu=False.

CPU mode appears broken.

goatzillax avatar Jan 10 '25 02:01 goatzillax