Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
parvinders347 opened this issue Nov 30, 2024 · 2 comments
Open

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

parvinders347 opened this issue Nov 30, 2024 · 2 comments

Comments

@parvinders347
Copy link

parvinders347 commented Nov 30, 2024

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

@romanvelichkin
Copy link

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

@goatzillax
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants