Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/anubhavshrimal/Face-Recognition
/ functions
Functions
18 in github.com/anubhavshrimal/Face-Recognition
⨍
Functions
18
◇
Types & classes
0
↓ 2 callers
Function
_raw_face_landmarks
(face_image, face_locations=None)
face_recognition_api.py:107
↓ 2 callers
Function
_raw_face_locations
Returns an array of bounding boxes of human faces in a image :param img: An image (as a numpy array) :param number_of_times_to_upsample:
face_recognition_api.py:85
↓ 1 callers
Function
_filter_image_files
(training_dir_path)
create_encodings.py:21
↓ 1 callers
Function
_get_each_labels_files
(training_dir_path)
create_encodings.py:17
↓ 1 callers
Function
_get_training_dirs
(training_dir_path)
create_encodings.py:9
↓ 1 callers
Function
_get_training_labels
(training_dir_path)
create_encodings.py:13
↓ 1 callers
Function
_rect_to_tuple
Convert a dlib 'rect' object to a plain tuple in (top, right, bottom, left) order :param rect: a dlib 'rect' object :return: a plain tup
face_recognition_api.py:14
↓ 1 callers
Function
_trim_rect_tuple_to_bounds
Make sure a tuple in (top, right, bottom, left) order is within the bounds of the image. :param rect: plain tuple representation of the rec
face_recognition_api.py:34
↓ 1 callers
Function
_tuple_to_rect
Convert a tuple in (top, right, bottom, left) order to a dlib `rect` object :param rect: plain tuple representation of the rect in (top, ri
face_recognition_api.py:24
↓ 1 callers
Function
_zipped_folders_labels_images
(training_dir_path, labels)
create_encodings.py:36
↓ 1 callers
Function
create_dataset
(training_dir_path, labels)
create_encodings.py:42
↓ 1 callers
Function
face_distance
Given a list of face encodings, compare them to a known face encoding and get a euclidean distance for each comparison face. The distance tel
face_recognition_api.py:45
↓ 1 callers
Function
get_prediction_images
(prediction_dir)
predict.py:7
Function
compare_faces
Compare a list of face encodings against a candidate encoding to see if they match. :param known_face_encodings: A list of known face encodi
face_recognition_api.py:155
Function
face_encodings
Given an image, return the 128-dimension face encoding for each face in the image. :param face_image: The image that contains one or more fa
face_recognition_api.py:141
Function
face_landmarks
Given an image, returns a dict of face feature locations (eyes, nose, etc) for each face in the image :param face_image: image to search
face_recognition_api.py:116
Function
face_locations
Returns an array of bounding boxes of human faces in a image :param img: An image (as a numpy array) :param number_of_times_to_upsample:
face_recognition_api.py:96
Function
load_image_file
Loads an image file (.jpg, .png, etc) into a numpy array :param filename: image file to load :param mode: format to convert the image to
face_recognition_api.py:60