mirror of
https://github.com/serengil/deepface.git
synced 2025-06-06 11:35:21 +00:00
Fix linting error.
This commit is contained in:
parent
dcf94150f2
commit
9792af410d
@ -51,7 +51,8 @@ def detect_face(face_detector, img, align=False):
|
||||
# Extract landmarks
|
||||
left_eye, right_eye, _, _, _ = result.keypoints.tolist()
|
||||
# Check the landmarks confidence before alignment
|
||||
if left_eye[2] > LANDMARKS_CONFIDENCE_THRESHOLD and right_eye[2] > LANDMARKS_CONFIDENCE_THRESHOLD:
|
||||
if (left_eye[2] > LANDMARKS_CONFIDENCE_THRESHOLD and
|
||||
right_eye[2] > LANDMARKS_CONFIDENCE_THRESHOLD):
|
||||
detected_face = FaceDetector.alignment_procedure(
|
||||
detected_face, left_eye[:2], right_eye[:2]
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user