使用 OpenCV 做人脸识别,
face_recognizer = cv2.face.LBPHFaceRecognizer_create()
报错 AttributeError: 'module' object has no attribute 'face'
是因为缺少 opencv-contrib
,可以使用 pip install opencv-contrib-python
进行安装
使用 OpenCV 做人脸识别,
face_recognizer = cv2.face.LBPHFaceRecognizer_create()
报错 AttributeError: 'module' object has no attribute 'face'
是因为缺少 opencv-contrib
,可以使用 pip install opencv-contrib-python
进行安装