Face detection using Cascade Classifier in opencv python

前端 未结 8 1238
[愿得一人]
[愿得一人] 2020-12-31 21:36

I am using the inbuilt cascade classifier for the face detection. This is how the code is (OpenCV Python Tutorials):

import numpy as np
import cv2

face_casc         


        
8条回答
  •  南方客
    南方客 (楼主)
    2020-12-31 22:35

    I faced the same problem. First you will have to give the correct path of the file to the system, which looks like this: /home/xxxx/Desktop/Projects/haarcascade_eye.xml. Next, you'll have to open the code on github and save the raw version of the code for it run. It's advisable for both the files to be in the folder where you are storing your project file. Happy coding

提交回复
热议问题