Loading...
Logo
Processing Forum

controll an object through eyes

in General Discussion  •  Other  •  10 months ago  
Hello Friends, 

I want to create a sketch in which , during the live video feed , I want to control an object (whatever like .png) through eyes(my eyes).

Is there any way to do this?
I mean, is there any Library by which we can do somthing (like move an object) through our eyes only???

Your valuable help or suggestions must be appriciated ....


Thank you...

Replies(3)

Hey,
by "controlling through eyes", do you mean the position of the the eyes in a video? This could be achieved via face-recognition, have a look at opencv.

But if you want to track the point where the user is looking (gaze-tracking), this more complicated. You would need to track the position of the pupil in relation to the eye's position. Though it works, it is not very precise due to low camera resolution. (The pupil only moves several pixels when looking around the screen).
Hey benja,

M extremely sorry for my (very) late reply, And thanks so much for your help...

I'll definitely follow your suggestion...



Regards
Theoretically, this seems to be possible, but I have doubts that it would be even remotely accurate with a web cam. You would have to find the eyes on the face and calculate 3D vectors based on where the eyes are looking. As benja pointed out, that step is probably the main problem. The resolution on a camera is probably not going to be accurate enough to give a good vectors.

If you did have a good vectors, then you would just have to calculate where they intersect. There also would have to be conditions for when they don't intersect (maybe projecting cones from the eyes instead of rays would avoid this).