ageitgey / face_recognition

The world's simplest facial recognition api for Python and the command line
MIT License
52.89k stars 13.44k forks source link

how much is exe time for just recognition? cpu mode #1338

Open SabraHashemi opened 3 years ago

SabraHashemi commented 3 years ago

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)

VirusEnabled commented 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.

SabraHashemi commented 3 years ago

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?