This project was bootstrapped with Create React App.
It uses face-api.js for face detection and react webcam to capture detected face.
The components takes the following props
Loading state for the face capture section, can be used for when api call is made for more validation of face captured.
Function to close the face capture section
Function to call after face capture is successful, this takes an image parameter which is a base64 code of the face captured.
Error message to return e.g. in case of a failed validation after capture