Created
July 18, 2020 11:52
-
-
Save poudyalanil/4f8bc0b2d48c03ae2b153ef82115fb8d to your computer and use it in GitHub Desktop.
Face Detection
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
# detect faces | |
face_cordinates = trained_data.detectMultiScale(greyscale_frame) | |
#x and y is the upper left corner coordinate and w and h are the corresponding width and height of the rectangle | |
for (x,y,w,h) in face_cordinates: | |
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