Use Face Recognition API to make a Dragon Ball Scouter. Detect your open source contributions on Github with your face!
Check complete source code on Github:
https://github.com/chechiachang/scouter
19. Github API Limitation
1. Paging?
Search API return first 1000 users only?
2. Rate Limit?
Search API < 30 q/min?
User API < 5,000 q/hr
https://developer.github.com/v3/
20. Github API Limitation
1. Batch?
https://api.github.com/search/users?
?q=location:taiwan?
+created:2008-01-01..2008-02-01
2. Rate Control?
go routine?
wait group?
runtime.GOMAXPROCS()
https://developer.github.com/v3/
26. import face_recognition
import pickle
import numpy as np
# Load face encodings. read binary
with open('dataset_faces.dat', 'rb') as f:
all_face_encodings = pickle.load(f)
# Grab the list of names and the list of encodings
face_names = list(all_face_encodings.keys())
face_encodings = np.array(list(all_face_encodings.values()))
# Try comparing an unknown image
unknown_img = face_recognition.load_image_file("unknown.jpg")
unknown_face = face_recognition.face_encodings(unknown_img)
result = face_recognition.compare_faces(face_encodings, unknown_face)?
[('david', True), (‘chang', False)]