No Module Named Cv
Solution 1:
For ImportError: No module named cv
, try installing opencv-python
module using below command:
pip install opencv-python
Solution 2:
cv2.cv
doesn't exists in OpenCV 3.0. Use simply cv2
Also, the attribute is no more CV_HOUGH_GRADIENT but HOUGH_GRADIENT
So what you looking for is probably:
cv2.HOUGH_GRADIENT
Solution 3:
OK , I searched for a while and find the following :
First: you may write:
import cv2.cv as cv
to solve your proplemcv
andcv2
are both interface for python , and now , the newest "cv2
" is the most used one , but clearly some libraries still usecv
and others (like yours) use mix of the two,What is different between all these OpenCV Python interfaces?
Solution 4:
It seems this code is using a old version of OpenCV. Unfortunately there is no mention of the exact version they used in their repo.
As the code is at least 2 years old, I would install opencv version 2.4.
pip install opencv-python==2.4
Post a Comment for "No Module Named Cv"