报错

raceback (most recent call last):
  File "D:/work/python/face_ai/predict.py", line 41, in <module>
    face_recognizer = cv2.face.LBPHFaceRecognizer_create()
AttributeError: 'module' object has no attribute 'face'

问题分析:

主要原因是OpenCV的扩展模块Opencv_contrib没有找到的原因。

解决方法:

pip install opencv_contrib_python 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-07-24
  • 2021-09-15
  • 2021-06-06
  • 2021-07-27
  • 2022-02-07
  • 2021-06-27
相关资源
相似解决方案