EasyOCR
EasyOCR copied to clipboard
Using CPU. Note: This module is much faster with a GPU.
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.
I think is has nothing to do with CPU. Debug your code and image step by step.
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.