Reputation: 1034
I've installed on my raspberry opencv python module and everything was working fine. Today I've compiled a C++ version of OpenCV and now when I want to run my python script i get this error:
Traceback (most recent call last): File "wiz.py", line 2, in import cv2.cv as cv ImportError: No module named cv
Upvotes: 0
Views: 1555
Reputation: 122
Check the API docs for 3.0. Some python functions return more parameters or in a different order.
example: cv2.cv.CV_HAAR_SCALE_IMAGE was replaced with cv2.CASCADE_SCALE_IMAGE
or
(cnts, _) = cv2.findContours(...) now returning the modified image as well (modImage, cnts, _) = cv2.findContours(...)
Upvotes: 3