Unknown OpenCV exception while using EasyOcr

Viewed 2793

Code:

import easyocr

reader = easyocr.Reader(['en'])
result = reader.readtext('R.png')

Output:

CUDA not available - defaulting to CPU. Note: This module is much faster with a GPU.

cv2.error: Unknown C++ exception from OpenCV code

I would truly appreciate any support!

2 Answers

The new version of OpenCV has some issues. Uninstall the newer version of OpenCV and install the older one using:

pip install opencv-python==4.5.4.60

install letest version of opnecv

pip install opencv-python==4.5.4.60

Related