diff --git a/CompletedCode.py b/CompletedCode.py index bc564b7..2d4030f 100644 --- a/CompletedCode.py +++ b/CompletedCode.py @@ -3,7 +3,7 @@ import numpy as np import matplotlib.pyplot as plt # Load video using OpenCV -video = cv2.VideoCapture("PPG_Programming.mp4") +video = cv2.VideoCapture("Sophia.mp4") # Get video information fps = video.get(cv2.CAP_PROP_FPS) @@ -40,7 +40,7 @@ for i in range(num_frames): 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.15)), + 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 # cv2.imshow("Faces", frame) diff --git a/Sophia.mp4 b/Sophia.mp4 new file mode 100644 index 0000000..f781aca Binary files /dev/null and b/Sophia.mp4 differ