mirror of
https://github.com/serengil/deepface.git
synced 2025-06-07 12:05:22 +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
|
# Extract landmarks
|
||||||
left_eye, right_eye, _, _, _ = result.keypoints.tolist()
|
left_eye, right_eye, _, _, _ = result.keypoints.tolist()
|
||||||
# Check the landmarks confidence before alignment
|
# 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 = FaceDetector.alignment_procedure(
|
||||||
detected_face, left_eye[:2], right_eye[:2]
|
detected_face, left_eye[:2], right_eye[:2]
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user