Using Face Detection and Capture

This project was bootstrapped with Create React App.

It uses face-api.js for face detection and react webcam to capture detected face.

Props

The components takes the following props

isProcessing - boolean

Loading state for the face capture section, can be used for when api call is made for more validation of face captured.

closeSection - function

Function to close the face capture section

next - function

Function to call after face capture is successful, this takes an image parameter which is a base64 code of the face captured.

errMessage - string

Error message to return e.g. in case of a failed validation after capture