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

前端 未结 12 846
伪装坚强ぢ
伪装坚强ぢ 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:10

    I had a similar problem:

    module cv2 has no attribute "cv2.TrackerCSRT_create"

    My Python version is 3.8.0 under Windows 10. The problem was the opencv version installation.

    So I fixed this way (cmd prompt with administrator privileges):

    1. Uninstalled opencv-python: pip uninstall opencv-python
    2. Installed only opencv-contrib-python: pip install opencv-contrib-python

    Anyway you can read the following guide:

    https://github.com/skvark/opencv-python

提交回复
热议问题