Sometimes, when you spend too much time looking at a computer screen, your eyes may start to dry up and burn. We hope to help alleviate this.

What it does

Reminds the user every 20 minutes to take a break from looking at the screen. Currently, optical scientists suggest looking at least 20 feet away for at least 20 seconds. This is called the 20-20-20 rule

How we built it

We used tracking.js to find an user's face from their webcam, and then simple geometry formulas to determine how far away they are from their webcam. From there, we tell them whether they are in a safe range, or if they should move closer or farther away.

Challenges we ran into

The facial detection was a little bit challenging. It is a difficult area, and a relatively new one, so we had a few hiccups in the beginning. We overcame, though, and now our system can detect distance from screen.

Desktop notifications were having troubles in certain browsers, but not all.

Accomplishments that we're proud of

Finally getting face detection to work.

What we learned

We learned out how to detect a face in front of a camera. We learned how to find distance of a face from a camera.

What's next for optim-eyes

We want to add more functionality to further protect somebody's eyes.

We also want to improve the accuracy of distance detection.

Make this as an executable instead of a web app so that it can run in the background as a separate application.

Disable the webcam once the user has moved to a safe position and recognized that.

Built With

Share this project: