Face-Detection-in-Python-using-OpenCV
Face-Detection-in-Python-using-OpenCV copied to clipboard
Face Detection with Python using OpenCV
line faces_rects = haar_cascade_face.detectMultiScale(test_image_gray, scaleFactor = 1.2, minNeighbors = 5); gives an error: error: OpenCV(4.1.2) /io/opencv/modules/objdetect/src/cascadedetect.cpp:1689: error: (-215:Assertion failed) !empty() in function 'detectMultiScale'
I DONT GET THIS LINE , WHAT IS THE NEED OF `cv2.rectangle(test_image, (x, y), (x+w, y+h), (0, 255, 0), 2)` That `(x+w, y+h) ` one As if you go for...
Code in __Face detection with OpenCV.py__ refers to baby1.jpg. There is no file baby1.jpg in its folder. However, there's data/baby1.png file.
Saved code in *Face detection with OpenCV.py* in a file called face-detection.py $ python face-detection.py Traceback (most recent call last): File "face-detection.py", line 5, in get_ipython().magic('matplotlib inline') NameError: name 'get_ipython'...