This commit is contained in:
Andrea Lanfranchi 2024-02-27 10:15:50 +01:00
parent 001e609a82
commit 53510f0584
No known key found for this signature in database
GPG Key ID: 2D623A60BB279915

View File

@ -128,7 +128,9 @@ def detect_faces(
angle=angle, angle=angle,
size=(img.shape[0], img.shape[1]) size=(img.shape[0], img.shape[1])
) )
detected_face = aligned_img[int(rotated_y1) : int(rotated_y2), int(rotated_x1) : int(rotated_x2)] detected_face = aligned_img[
int(rotated_y1) : int(rotated_y2),
int(rotated_x1) : int(rotated_x2)]
result = DetectedFace( result = DetectedFace(
img=detected_face, img=detected_face,