mpatacchiola / deepgaze

Computer Vision library for human-computer interaction. It implements Head Pose and Gaze Direction Estimation Using Convolutional Neural Networks, Skin Detection through Backprojection, Motion Detection and Tracking, Saliency Map.
MIT License
1.78k stars 479 forks source link

Update haar_cascade.py #72

Closed tatsuyaokunaga closed 5 years ago

tatsuyaokunaga commented 5 years ago

line 149 & 197 old) flags=cv2.cv.CV_HAAR_SCALE_IMAGE new) flags=cv2.CASCADE_SCALE_IMAGE

kamathhrishi commented 5 years ago

@tatsuyaokunaga Hello , Could you clarify more on what your pull request does?

tatsuyaokunaga commented 5 years ago

@kamathhrishi Hello, As written on this page, https://github.com/mpatacchiola/deepgaze/issues/41 I got below error, AttributeError: module 'cv2' has no attribute 'CV_HAAR_SCALE_IMAGE'

Such an error occurs because the submodule cv has been removed from opencv 3.0. You can use an alternative cv2.CASCADE_SCALE_IMAGE.

mpatacchiola commented 5 years ago

This has now been added in branch 2.0