Hi. Thank you for the reply.
Probably I haven’t clearly explained my problem.
First: all the samples work on my system.
My problem is the following: I need something, like a method or properties and so on, that tell me if there is (or there isn’t) someone in front of the eye tracker. In other words, I need that the eye tracker gives me a feedback (like a flag) when it detects the presence of someone in front of it, like this:
There is someone in front of it: flag = true;
There isn’t someone in front of it: flag = false.
Anyway in the last three days I have tried to find a solution. I find here
http://eyetribe.github.io/tet-csharp-client/ in the GazeData class these fields, that give these costants:
GazeData. STATE_TRACKING_EYES = 2
GazeData.STATE_TRACKING_PRESENCE = 4
GazeData. STATE_TRACKING_FAIL = 8
GazeData. STATE_TRACKING_GAZE = 1
GazeData. STATE_TRACKING_LOST = System.Eventargs
I have found also, in the same page, the property State, that assumes different values in different situations. Those values are: 7, 8, 6, 16.
After several tests I have observed the following results:
gazeData.State == 7 that is: GazeData. STATE_TRACKING_GAZE + GazeData.STATE_TRACKING_PRESENCE + GazeData. STATE_TRACKING_EYES
gazeData.State == 6 that is: GazeData. STATE_TRACKING_EYES + GazeData.STATE_TRACKING_PRESENCE
gazeData.State == 8 that is: GazeData. STATE_TRACKING_FAIL , the eye tracker doesn’t detect anybody for a certain period of time established by itself.
gazeData.State == 16 that is: nobody is in front of the eye tracker, so the eye tracker dosn’t detect both the presence and the eyes of the person.
Is my analysis correct? Because if it’s correct, I think I’ve found the reply to my question.
Thanks!