mirror of
https://github.com/serengil/deepface.git
synced 2025-06-07 20:15:21 +00:00
Remove commented and unused code
This commit is contained in:
parent
fb6d2f572e
commit
fe077308f4
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user