AttributeError: module 'cv2.cv2' has no attribute 'createLBPHFaceRecognizer'

前端 未结 12 856
伪装坚强ぢ
伪装坚强ぢ 2020-11-30 04:28

I am facing some attribute error while running face recognizing the code. My face detects code run perfectly.But while I try to run the face recognizing code it shows some a

12条回答
  •  长情又很酷
    2020-11-30 05:14

    You might be running Python3 and therefore you are supposed to use pip3 to install the opencv-contrib package :

    pip3 install opencv-contrib-python
    

    This worked for me.

提交回复
热议问题