错误修改方法:AttributeError: module 'cv2.face' has no attribute 'createLBPHFaceRecognizer'

其实,在python3中,cv2.face.createLBPHFaceRecognizer()方法已经修改为为: recognizer = cv2.face.LBPHFaceRecognizer_create(),修改后就没问题了。
相关文章
相关标签/搜索