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

后端 未结 6 1898
栀梦
栀梦 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:07

    The easiest way for me was to use anaconda package:

    conda install -c menpo opencv3=3.1.0
    

    Once installed, use cv2.face.createLBPHFaceRecognizer() or other face recognizers. Hope this helps

提交回复
热议问题