From 9c623745706f55a1826d501983531dc57cbed3ff Mon Sep 17 00:00:00 2001 From: Alexandre Date: Sun, 19 Feb 2023 11:47:16 +0100 Subject: [PATCH] Face Detection --- CompletedCode.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CompletedCode.py b/CompletedCode.py index 3baafac..88e6849 100644 --- a/CompletedCode.py +++ b/CompletedCode.py @@ -36,13 +36,13 @@ for i in range(num_frames): gray_frame, scaleFactor=1.1, minNeighbors=5) # print(face) - # Dessiner un rectangle autour de chaque visage détecté and if fac is detected store information + # Draw a rectangle on each detected face and if face is detected store information if len(face) > 0: x, y, w, h = face[0] face = frame[y:y+h, x:x+w] frame = cv2.rectangle(frame, (int(x*1.15), int(y*1)), (x + int(w*0.7), y + int(h*0.2)), (0, 255, 0), 3) - # Afficher l'image + # Show image to check if the rectangle is well positioned on the forehead # cv2.imshow("Faces", frame) # cv2.waitKey(0)