0
点赞
收藏
分享

微信扫一扫

AttributeError: module ‘cv2‘ has no attribute ‘face‘解决方案

北邮郭大宝 2022-04-27 阅读 75

报错:

face_recognizer = cv.face.LBPHFaceRecognizer_create()

AttributeError: module 'cv2' has no attribute 'face'

解决方法:

方法1.尝试终端安装:pip install opencv-contrib-python

方法2.全部卸载重装:终端依次执行

pip uninstall opencv-contrib-python

pip uninstall opencv-python

pip install opencv-python

pip install opencv-contrib-python

方法3.看看别的csdn解决方案!!!

举报

相关推荐

0 条评论