使用 OpenCV 做人臉識(shí)別栖秕,
face_recognizer = cv2.face.LBPHFaceRecognizer_create()
報(bào)錯(cuò) AttributeError: 'module' object has no attribute 'face'
是因?yàn)槿鄙? opencv-contrib
,可以使用 pip install opencv-contrib-python
進(jìn)行安裝
使用 OpenCV 做人臉識(shí)別栖秕,
face_recognizer = cv2.face.LBPHFaceRecognizer_create()
報(bào)錯(cuò) AttributeError: 'module' object has no attribute 'face'
是因?yàn)槿鄙? opencv-contrib
,可以使用 pip install opencv-contrib-python
進(jìn)行安裝