I am creating a face recognition system using Python and OpenCV on these versions:
- Python 3.6.2 :: Anaconda custom (64-bit)
- Anaconda 4.3.23
- OpenCV 3.3.0
When I try to train the face recognizer:
face_recognizer = cv2.face.createLBPHFaceRecognizer()
I get this error:
AttributeError: module 'cv2' has no attribute 'face'
Update:
I've tried to do this:
pip install opencv_python?3.3.0+contrib?cp36?cp36m?win_amd64.whl
Also:
conda install -c menpo opencv3=3.3.0
And I still have the error.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…