Opencv_contrib: No 'text' in cv2.cv2

Created on 7 Dec 2017  路  2Comments  路  Source: opencv/opencv_contrib

opencv_contrib/modules/text/samples/textdetection.py

when I use it, Python says "AttributeError: module 'cv2.cv2' has no attribute 'text'".
What should I do? I want to do OCR with python.

env:
CV2 latest version (pip install cv2)
Python 3.6 v3.6.0:41df79263a11
Windows 7 Home Premium,SP1,64bit
pyocr with tesseract 3.02.02

question (invalid tracker)

Most helpful comment

You need to install same version of OpenCV and opencv_contrib. I faced the same problem and solved it with installing opencv_contrib of same version of OpenCV.

All 2 comments

pip install cv2

We don`t support this here (no idea who is owner of this package).

You need to install same version of OpenCV and opencv_contrib. I faced the same problem and solved it with installing opencv_contrib of same version of OpenCV.

Was this page helpful?
0 / 5 - 0 ratings