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

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

    try this

    run this command to install the contrib

    python -m pip install opencv-contrib-python

    after this is done use this attribute

    recoginizer = cv2.face.LBPHFaceRecognizer_create()
    

提交回复
热议问题