Auto Generated Code Documentation¶
created on May 13, 2019
@author: Fiorella Tenorio, Chris Olley, Luke Qi, Randy Ma, Byron Han, Julia Tavares
-
class
app.routes.UploadFileForm(formdata=<object object>, **kwargs)[source]¶ Class for uploading file when submitted
-
file_selector= <UnboundField(FileField, ('File',), {'validators': [<flask_wtf.file.FileRequired object>]})>¶
-
submit= <UnboundField(SubmitField, ('Submit',), {})>¶
-
Handle login errors
-
class
app.classes.User(name, username, email, password)[source]¶ Class to store user information
-
email¶
-
id¶
-
name¶
-
password_hash¶
-
username¶
-
-
face_detection_process.align_face(img, pnet, rnet, onet)[source]¶ Detect and align faces from a frame, returning the detected faces and the bounding boxes for the faces.
-
face_detection_process.identify_person(image_vector, feature_names, feature_np, k=9)[source]¶ Calculates the Euclidean distance between a face embedding and the stored embeddings, returning the identity of the stored embedding most similar to the face embedding and the distance between these embeddings.
-
face_detection_process.load_and_align_data(image_paths, image_size=160, margin=44)[source]¶ Load user images and detect faces. Returns processed images with faces detected in them.
-
face_detection_process.load_img(img, do_random_crop, do_random_flip, image_size, do_prewhiten=True)[source]¶ Process the captured images from the webcam, prewhitening, cropping and flipping as required. Returns processed image.
-
face_detection_process.resize_image(img, image_size, do_prewhiten=True)[source]¶ Processes a single image by whitening and cropping
-
face_detection_process.write_svg_facenet(stream_url)[source]¶ Reads an alternative facenet model, and connects to the in-memory Redis database. Detects faces (no identification) in the specified stream and calculates the corresponding bounding boxes. Writes the bounding boxes for all detected faces to an svg overlay which is then saved to Redis to be accessed by other processes.
-
face_detection_process.write_svg_facenet_emb(stream_url)[source]¶ Reads the facenet model and the saved embeddings from disk, and connects to the in-memory Redis database. Detects faces in the specified stream and calculates the corresponding bounding boxes. Writes the bounding boxes for all detected and identified faces to an svg overlay which is then saved to Redis to be accessed by other processes.