mirror of
https://github.com/serengil/deepface.git
synced 2025-06-07 12:05:22 +00:00
Grammar.
This commit is contained in:
parent
f88a560f21
commit
0e9d7b7915
@ -48,8 +48,8 @@ def detect_face(face_detector, detector_backend, img, align=True):
|
||||
if len(obj) > 0:
|
||||
face, region, confidence = obj[0] # discard multiple faces
|
||||
|
||||
# If no face detected, return, set face to None,
|
||||
# image region to full image, confidence to 0
|
||||
# If no face is detected, set face to None,
|
||||
# image region to full image, and confidence to 0.
|
||||
else: # len(obj) == 0
|
||||
face = None
|
||||
region = [0, 0, img.shape[1], img.shape[0]]
|
||||
|
Loading…
x
Reference in New Issue
Block a user