pythonopencvimage-processingeasyocr

Unknown OpenCV exception while using EasyOcr


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!


Solution

  • 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