Fix linting errors.

This commit is contained in:
Vincent STRAGIER 2023-06-05 13:54:40 +02:00
parent a380cfffbb
commit f88a560f21
2 changed files with 4 additions and 4 deletions

View File

@ -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(

View File

@ -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):