track eye by tracking.js

1.5k views Asked by At

I recently found recently the JavaScript library - tracking.js

Is there any way to detect what div I see now by image or camera?

I have two elements on the desktop, the left and right columns, and I would like to check if I see left div ( with console.log() ) or right div. This library is simple, and I know how to add a script, but I don't know how to detect my eye and detect what element I see.

Maybe there are other ways to detect this.

1

There are 1 answers

1
Joel Ibaceta On

Thats a bit complicated because you need detect minimal ocular movements and the common webcams, haven't resolution enough, but with some hardware like this project http://pupil-labs.com/pupil/, could do that.

A good solution is tracking.js because this library simulate human behavior with a some algorithms and should be enough to make simple decisions like the columns position.