Ask Your Question

Modulo cv2 has no attribute cv

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

sadas gravatar image


I installed opencv-python using the answer given by @user3731622 in the following post:

I can import cv2 but when I try import 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



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 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

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

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

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower


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

Seen: 1,740 times

Last updated: Aug 12 '16