Commit 96c53e80 authored by Kamron Aroonrua's avatar Kamron Aroonrua 💬

face

parent 27f45178
Pipeline #52 canceled with stages
......@@ -18,11 +18,8 @@ def load_face_db(known_people_folder):
encodings = face_recognition.face_locations(img, model="cnn")
print('loading facedb >> ' + basename)
if len(encodings) > 1:
click.echo("WARNING: More than one face found in {}. Only considering the first face.".format(file))
if len(encodings) == 0:
click.echo("WARNING: No faces found in {}. Ignoring file.".format(file))
print('FACE Not Found >>>>>>>> ' + basename)
else:
#known_names.append(basename)
#known_face_encodings.append(encodings[0])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment