Created
April 4, 2016 20:05
-
-
Save JohnAllen/399f11f9cbb43db9ce0a234aba7ebdd7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
faces = faceCascade.detectMultiScale( | |
gray, | |
scaleFactor=1.1, | |
minNeighbors=4, | |
minSize=(22, 22), | |
flags=cv2.CASCADE_SCALE_IMAGE | |
) | |
# Draw a rectangle around the faces | |
for (x, y, w, h) in faces: | |
cv2.rectangle(frame, (x, y), (x+w, y+h), (0, 255, 0), 2) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment