Sohia
This commit is contained in:
parent
eb92b45567
commit
5acbdea1f3
|
|
@ -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)
|
||||
|
|
|
|||
Binary file not shown.
Loading…
Reference in New Issue