Opencv3 and Python 2.7 on Virtual Environment - AttributeError: 'module' object has no attribute 'createLBPHFaceRecognizer'

后端 未结 6 1935
栀梦
栀梦 2021-01-02 02:53

I have a python function with opencv 3. it works without virtual environment.Also I installed opencv on venv from:pyimagesearch. i am trying to run that python function on v

6条回答
  •  悲哀的现实
    2021-01-02 03:05

    For Python version 3.6.x, do this:

    Open your terminal and install opencv-contrib-python

    python -m pip install opencv-contrib-python
    

    when you done with it use this

    recoginizer = cv2.face.LBPHFaceRecognizer_create()
    

    For More option you can do it like this way:

    print(help(cv2.face))
    

提交回复
热议问题