Skip to content

Commit

Permalink
Grammar.
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincent-Stragier committed Jun 5, 2023
1 parent f88a560 commit 0e9d7b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions deepface/detectors/FaceDetector.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]]
Expand Down

0 comments on commit 0e9d7b7

Please sign in to comment.