Inspiration
Gavin recently purchased glasses online and was frustrated at how difficult it was to measure pupil distance manually.
What it does
Our front-end code allows a user to use their webcam to measure the distance between their eyes.
How I built it
Using the Opencv.js library we were able to manipulate images to measure the length using a credit card as a reference image and then using face-feature detection to pinpoint the centers of the eye and measure the pupil distance.
Challenges I ran into
being able to measure both the credit card and pupil distance on a live video stream. Measuring on still pictures was achievable but required several images and piecing together data
Accomplishments that I'm proud of
we were able to measure the distance of the pupils on a live webcam stream
What I learned
we learned a lot about opencv and computer vision techonology
What's next for Pupil Distance Scanner for Online Glasses Purchasing
Making credit card measurements and pupil measurements happen together.
Built With
- face-feature-detection
- javascript
- opencv
Log in or sign up for Devpost to join the conversation.