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!

2
  • 1
    send bug report to easyocr maintainer/developer Commented Jan 4, 2022 at 3:54
  • 3
    Switch to 4.5.4.60 Opencv version Opencv latest release have a problem with easyocr. @joseph-k Commented Jan 4, 2022 at 3:58

2 Answers 2

6

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
Sign up to request clarification or add additional context in comments.

1 Comment

This answer is literally Hiren Namera's comment.
0

install letest version of opnecv

pip install opencv-python==4.5.4.60

1 Comment

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.