Home › Forums › Software Development › Gaze Duration
- This topic has 1 reply, 2 voices, and was last updated 5 years ago by Grant [Tobii].
- AuthorPosts
- 16/09/2019 at 19:41 #11995Mark NixonParticipant
What is the best way to track how long users are gazing at specific regions on the window?
17/09/2019 at 10:59 #11997Grant [Tobii]KeymasterHi @nixonmark3, thanks for your query. Assuming that you are using either the Tobii Core SDK or new Interaction Library, then the simplest way to track how long a region receives gaze data would be to start a counter loop within the function that run when a gaze aware region receives focus.
DotNet has a stopwatch class within System.Diagnostics that should be adequate for the task.
If you take a look at our new Interaction Library which you can download the Beta @ https://developer.tobii.com/consumer-eye-trackers-interaction-library-getting-started/
Within the C# Sample, you have the function
intlib.GazeFocusEvent += e =>
to receive gaze event. You could place your timer within here.Similarly, this could be applied within the Core SDK using the WPF framework for which you have a number of samples to investigate @ https://github.com/Tobii/CoreSDK/tree/master/samples
Hopefully this points you in the right direction, please try it out and let us know how you get on.
- AuthorPosts
- You must be logged in to reply to this topic.