Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is cv2.cv missing in OpenCV 3.0?

Tags:

opencv3.0

I've just installed OpenCV 3 on Win7 for using with Python 2.7. I've copied cv2.pyd to /DLLs.

Unfortunately many examples I've tried, don't work, because cv2.cv seems to be missing in OpenCV3

Is there a replacement for it? Is there a table of new constant-names used to be declared in cv2.cv?

Many thanks!

like image 381
Valentin H Avatar asked Sep 30 '14 23:09

Valentin H


2 Answers

yes, the deprecated cv2.cv was removed in opencv3.0

something similar to:

import cv2

help(cv2)

will give you a (looong) list of the api's content.

like image 192
berak Avatar answered Oct 26 '22 21:10

berak


To get old examples to work, you need to create/edit a file cv.py in site-packages with the following single line of text:

import cv2 as cv
like image 33
Ninga Avatar answered Oct 26 '22 21:10

Ninga