AttributeError: 'module' object has no attribute 'face'
445 ワード
誤報
raceback (most recent call last):
File "D:/work/python/face_ai/predict.py", line 41, in
face_recognizer = cv2.face.LBPHFaceRecognizer_create()
AttributeError: 'module' object has no attribute 'face'
問題の分析:
主な原因はOpenCVの拡張モジュールOpencv_contribが見つからなかった理由.
解決方法:
pip install opencv_contrib_python
転載先:https://www.cnblogs.com/a9999/p/10451498.html