5

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!

Christoph Rackwitz
  • 11,317
  • 4
  • 27
  • 36
Joseph K
  • 61
  • 1
  • 5

2 Answers2

7

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
Gino Mempin
  • 25,369
  • 29
  • 96
  • 135
0

install letest version of opnecv

pip install opencv-python==4.5.4.60

  • 1
    Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – user11717481 Feb 22 '22 at 14:49