ITCoders / Human-detection-and-Tracking

Human-detection-and-Tracking
Apache License 2.0
856 stars 307 forks source link

openCV Problem #27

Closed rachana88 closed 6 years ago

rachana88 commented 6 years ago

I am getting this error . please anyone help me on this File "main.py", line 17, in recognizer = cv2.face.LBPHFaceRecognizer_create() AttributeError: module 'cv2.cv2' has no attribute 'face'

arpit1997 commented 6 years ago

@rachana88 Please mention your python version, operating system and opencv version that you are using. cc: @prsntmaurya

prsntmaurya commented 6 years ago

As further information is not provided, I assume this issue has been resolved. If there will be no further discussion in next few days this issue will be closed.

riteshhota2008 commented 6 years ago

I am getting the same error.

File "main.py", line 17, in recognizer = cv2.face.LBPHFaceRecognizer_create() AttributeError: module 'cv2.cv2' has no attribute 'face'

Python version - 3.6.5 OS - Mac Os Opencv Version - 3.4.0

prsntmaurya commented 6 years ago

Hi Ritesh, Please ensure that your OpenCV is compiled with contrib_modules. If it has already complied with contrib_modules then the error is because you are using OpenCV version 3.4 and this repository was written using OpenCV version 3.1.

If you don't want to switch your OpenCV version please refer to Issue #25 where this problem is already fixed.