We installed opencv and libraries for working with opencv in Python and managed to create an application for finding the eye pupil. In case the camera finds the eye, it will display only the data and image for the eye. In case it doesn't it will show the greyscale image and also show an error "No pupil detected".
We also added a counter so in case the camera doesn't see the pupil for a certain time it can assume that the eye is closed and will show a message.
As we have some issues with the opencv library and detecting camera on UDOO, we have tested the camera only on PC, but if it the code works on Ubuntu 16 it should also work on UDOO.