Remove commented and unused code

This commit is contained in:
Andrea Lanfranchi 2024-02-27 10:31:24 +01:00
parent fb6d2f572e
commit fe077308f4
No known key found for this signature in database
GPG Key ID: 2D623A60BB279915

View File

@ -129,12 +129,6 @@ def detect_faces(
# extract detected face unaligned
detected_face = img[int(y) : int(y + h), int(x) : int(x + w)]
# aligning detected face causes a lot of black pixels
# if align is True:
# detected_face, _ = detection.align_face(
# img=detected_face, left_eye=left_eye, right_eye=right_eye
# )
# align original image, then find projection of detected face area after alignment
if align is True: # and left_eye is not None and right_eye is not None:
aligned_img, angle = detection.align_face(