Open SabraHashemi opened 3 years ago
it doesn't take long, as far as I can tell less than a second. I'm saying this because I've been using the library for a month now, but you can always track execution time with ctime or another benchmarking lib.
less than one second is not good enough i cant run this code for now, i should be ensure then try it, can you compute time and report it?
how much is exe time for just recognition? cpu mode?
import face_recognition known_image = face_recognition.load_image_file("biden.jpg") unknown_image = face_recognition.load_image_file("unknown.jpg")
biden_encoding = face_recognition.face_encodings(known_image)[0] unknown_encoding = face_recognition.face_encodings(unknown_image)[0]
results = face_recognition.compare_faces([biden_encoding], unknown_encoding)