This past week I’ve been working on a web application that can estimate your diopters.
Right now I have a deployed prototype, which can be found here: https://em-ui.herokuapp.com/
- First you have to calibrate based on the camera you are using. So fill out the distance you are from the camera in cm.
- Next fill out your pupillary distance in cm.
- Then click the “Calibrate Focal Length” button. This should give you a focal length. Keep trying if it doesn’t.
- Next, move yourself away or toward camera finding the edge of blur.
- Finally, click the “Estimate Diopters” button. This should give you a reasonable diopters measurement. If not keep trying or repeat from step 1.
For example: I measure myself 70 cm away from the web camera. Then I fill out 6.8 cm for the PD. Calibrate. Then move back and click estimate.
This far from perfect but seems to work decently at times. It depends on the camera I believe, but a focal length around 500 or 600 should be displaying after calibration.
- Tip: Make sure are looking straight at the camera and your head and eyes are clearly visible in the image and the lighting is good.
Also, this is deployed using a free server so the response time will be slow and loading the app initially could be really slow if the server has gone to sleep. Please be patient.
The state of the frontend is stored in the user’s browser. The backend application is stateless, meaning no image or data is currently stored.
I’d love to hear some feedback. Thanks.