-2

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.

Zeno Rocha
  • 3,226
  • 1
  • 23
  • 27

1 Answers1

2

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.

Joel Ibaceta
  • 236
  • 3
  • 15
  • I have a my device "camera hand-home-made" which perfect detect eye - a have a photo like this: http://up.programosy.pl/foto/tracking.png , any ideas ? – Karol Białkowski Dec 05 '14 at 18:29