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

前端 未结 12 833
伪装坚强ぢ
伪装坚强ぢ 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 got openCV installed smoothly in my mac by:

    $ brew install opencv
    $ brew link --overwrite --dry-run opencv // to force linking
    $ pip3 install opencv-contrib-python
    

    I got it at windows 10 using:

    c:\> pip3 install opencv-python
    c:\> pip3 install opencv-contrib-python
    

    Then I got it tested by

    $ python3
    Python 3.7.3 (default, Mar 27 2019, 09:23:15) 
    [Clang 10.0.1 (clang-1001.0.46.3)] on darwin
    Type "help", "copyright", "credits" or "license" for more information.
    >>> import cv2
    >>> cv2.__version__
    '4.1.0'
    >>> exit()
    

提交回复
热议问题