OpenCV AttributeError: 'module'
2019-08-29 本文已影响0人
不做秃顶的程序猿
使用 OpenCV 做人脸识别,
face_recognizer = cv2.face.LBPHFaceRecognizer_create()
报错 AttributeError: 'module' object has no attribute 'face'
是因为缺少 opencv-contrib
,可以使用 pip install opencv-contrib-python
进行安装