Advertisement
Guest User

Untitled

a guest
Feb 28th, 2020
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. import face_recognition
  2. import sys
  3. x = face_recognition.load_image_file(sys.argv[1])
  4. y = face_recognition.load_image_file(sys.argv[2])
  5. x_en = face_recognition.face_encodings(x)[0]
  6. y_en = face_recognition.face_encodings(y)[0]
  7. res = face_recognition.compare_faces([x_en],y_en)
  8. print(res)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement