Add more debug

This commit is contained in:
Antonio J. Delgado 2021-09-06 16:31:53 +03:00
parent 660db24dec
commit 42a06079c5

View file

@ -95,6 +95,7 @@ class image_classifier:
try:
image = face_recognition.load_image_file(file)
encodings = face_recognition.face_encodings(image)
self._log.debug(f"{len(encodings)} found")
for known_person in self.known_people:
if known_person['encoding'] in encodings:
names.append(known_person['name'])