Skip to content

Commit

Permalink
Merge pull request #9 from funnukes/patch-1
Browse files Browse the repository at this point in the history
Update condition for more than one face in frame
  • Loading branch information
slashtechno authored Dec 9, 2023
2 parents fc94364 + beeffdd commit e2e4554
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wyzely_detect/utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ def recognize_face(
# Seems this is caused when someone steps into frame and their face is detected but not recognized
except IndexError:
print("Face present but not recognized")
return None
continue
# If the parent name is the same as the path to the database, then set label to the image name instead of the parent name
if path_to_image.parent == Path(path_to_directory):
label = path_to_image.name
Expand Down

0 comments on commit e2e4554

Please sign in to comment.