To capture the image from front camera and determine the distance between the face and mobile screen
I am developing an app to test vision. For this I want to capture the image of the user using the front camera. It should be within the specific dimensions. Then I want to calculate the distance between the mobile screen and eyes . This distance should be around 1 meter. Can someone help me on this?