Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where is `CV_HAAR_SCALE_IMAGE` in OpenCV 3.1.0 with Python 3.5?

Tags:

python

opencv

I get this error.

AttributeError: module 'cv2' has no attribute 'CV_HAAR_SCALE_IMAGE'

After upgrading my OpenCV to 3.1.0. I have tried these.

cv2.cv.CV_HAAR_SCALE_IMAGE

And also this.

cv2.CV_HAAR_SCALE_IMAGE

But still same error. I go here, http://docs.opencv.org/3.1.0/d9/d31/group__objdetect__c.html#ga812f46d031349fa2ee78a5e7240f5016 but I could not find any information of to which object the constants stored in.

like image 340
notalentgeek Avatar asked Dec 27 '16 08:12

notalentgeek


1 Answers

The sub module cv has been removed from opencv 3.0,

You can use an alternative cv2.CASCADE_SCALE_IMAGE

[Edit]

For further details check this.

like image 93
Rahul K P Avatar answered Nov 05 '22 08:11

Rahul K P