Ask Your Question
0

Modulo cv2 has no attribute cv

asked 2016-08-12 09:43:32 -0600

sadas gravatar image

Hello,

I installed opencv-python using the answer given by @user3731622 in the following post: https://stackoverflow.com/questions/2...

I can import cv2 but when I try import cv2.cv as cv I get the error mentioned in the title.

I have the version opencv-python-3.1.0 and I use Python 3.5.1 on Windows.

edit retag flag offensive close merge delete

Comments

1

the old cv module was a wrapper for the deprecated c-api, and was removed in opencv3.

(and stackoverflow unfortunately is only a dump of outdated cruft (at least for opencv). rather avoid looking there)

berak gravatar imageberak ( 2016-08-12 10:09:32 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2016-08-12 09:46:06 -0600

electron gravatar image

cv2.cv is in opencv2, not in opencv3+. just use cv2.what_do_you_want() instead of cv2.cv.what_do_you_want()

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2016-08-12 09:43:32 -0600

Seen: 2,153 times

Last updated: Aug 12 '16