Skip to content

Instantly share code, notes, and snippets.

@JohnAllen
Created April 4, 2016 20:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JohnAllen/399f11f9cbb43db9ce0a234aba7ebdd7 to your computer and use it in GitHub Desktop.
Save JohnAllen/399f11f9cbb43db9ce0a234aba7ebdd7 to your computer and use it in GitHub Desktop.
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