Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
adityasurana authored Jul 4, 2019
1 parent 9add5de commit cfb0558
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions face_encode_in.datfile.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
import face_recognition
import numpy as np
import os
import pickle

# Load a sample picture and learn how to recognize it.
aditya_image = face_recognition.load_image_file("/home/pi/Desktop/adi1.jpg")
aditya_face_encoding= face_recognition.face_encodings(aditya_image)[0]

# Load a sample picture and learn how to recognize it.
jatin_image = face_recognition.load_image_file("/home/pi/Desktop/jatin.jpg")
jatin_face_encoding = face_recognition.face_encodings(jatin_image)[0]

# Load a sample picture and learn how to recognize it.
rakshit_image = face_recognition.load_image_file("/home/pi/Desktop/raxx.jpg")
rakshit_face_encoding = face_recognition.face_encodings(rakshit_image)[0]

# Load a sample picture and learn how to recognize it.
komal_image = face_recognition.load_image_file("/home/pi/Desktop/komal.jpg")
komal_face_encoding = face_recognition.face_encodings(komal_image)[0]


with open('aditya_faces.dat', 'wb') as f:
pickle.dump(aditya_face_encoding, f)

with open('jatin_faces.dat', 'wb') as f:
pickle.dump(jatin_face_encoding , f)


with open('rakshit_faces.dat', 'wb') as f:
pickle.dump(rakshit_face_encoding , f)


with open('komal_faces.dat', 'wb') as f:
pickle.dump(komal_face_encoding , f)


0 comments on commit cfb0558

Please sign in to comment.