We're trying to measure the distance from a pupil pixel to a glass frame.
Right now, we can obtain the pupil's position and the direction in which we need to search, using simple Dlib or OpenCV functions.
I'm considering using a line iterator to go down until we find the frame, but what would be the most robust way of detecting it? The goal is to get something like this
EDIT: I'm assuming I can always obtain this kind of picture quality