Working on web application using face-api to detect face while taking selfie using front camera. I have a black transparent circle overlay on the screen for user to align face inside the circle.
I am not sure how can i detect if the face is inside the overlay and turn the circle border green once face is detected.