I am implementing a React web application to take user selfie for KYC process. I am using face-api.js and navigator.mediaDevice.getUserMedia() to turn on front camera and detect face first before enabling the capture button.
Is there any way to find if user face is pointing straight toward camera or user looking away from camera.