OpenCV: AttributeError: module 'cv2' has no attribute 'face'

后端 未结 7 1798
刺人心
刺人心 2020-12-21 12:14

I am creating a face recognition system using Python and OpenCV on these versions:

  • Python 3.6.2 :: Anaconda custom (64-bit)
  • Anaconda 4.3.23
  • O
7条回答
  •  有刺的猬
    2020-12-21 12:28

    I also had same problem but it got resolved by following these steps:

    1. start anaconda navigator

    2. open CMD.exe prompt, hope you see this **(base) C:\Users\acer>** this may be different for you

    3. write these command >>>**pip install opencv-contrib-python**

    4. Now you can run your code as check!! I have runned my code in Spyder in base enviroment and it worked for me!

提交回复
热议问题