mirror of
https://github.com/serengil/deepface.git
synced 2025-06-07 12:05:22 +00:00
Fix linting errors.
This commit is contained in:
parent
a380cfffbb
commit
f88a560f21
@ -424,7 +424,7 @@ def find(
|
||||
dlib, mediapipe or yolov8n.
|
||||
|
||||
align (boolean): alignment according to the eye positions.
|
||||
|
||||
|
||||
normalization (string): normalize the input image before feeding to model
|
||||
|
||||
silent (boolean): disable some logging and progress bars
|
||||
@ -830,7 +830,7 @@ def detectFace(
|
||||
):
|
||||
"""
|
||||
Deprecated function. Use extract_faces for same functionality.
|
||||
|
||||
|
||||
This function applies pre-processing stages of a face recognition pipeline
|
||||
including detection and alignment
|
||||
|
||||
@ -855,7 +855,7 @@ def detectFace(
|
||||
|
||||
Returns:
|
||||
detected and aligned face as numpy array
|
||||
|
||||
|
||||
"""
|
||||
print("⚠️ Function detectFace is deprecated. Use extract_faces instead.")
|
||||
face_objs = extract_faces(
|
||||
|
@ -61,7 +61,7 @@ def detect_face(detector, img, align=True):
|
||||
import traceback
|
||||
|
||||
print(traceback.format_exc())
|
||||
|
||||
|
||||
# For each face and associated score, append face,
|
||||
# bounding box, and score to resp
|
||||
for (x, y, w, h), confidence in zip(faces, scores):
|
||||
|
Loading…
x
Reference in New Issue
Block a user