Compare commits

..

2 Commits

Author SHA1 Message Date
slashtechno e2e4554031
Merge pull request #9 from funnukes/patch-1
Update condition for more than one face in frame
2023-12-09 10:21:36 -06:00
funnukes beeffdd8b8
Update condition for more than one face in frame 2023-12-09 21:40:41 +05:30
1 changed files with 1 additions and 1 deletions

View File

@ -151,7 +151,7 @@ def recognize_face(
# Seems this is caused when someone steps into frame and their face is detected but not recognized # Seems this is caused when someone steps into frame and their face is detected but not recognized
except IndexError: except IndexError:
print("Face present but not recognized") 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 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): if path_to_image.parent == Path(path_to_directory):
label = path_to_image.name label = path_to_image.name