Home › Forums › Software Development › Get GazePoints and TimeStamps by Event › Reply To: Get GazePoints and TimeStamps by Event
11/02/2019 at 15:52 #9342

Keymaster
Hi @wrapcaesar and thanks for your query. You can extract the gaze location and timestamp from the “GazePointDataStream” stream for which we provide an example of syntax within the “Interaction_Streams_101” sample application which you can download @ https://github.com/Tobii/CoreSDK
Below is the relevant snippet
var host = new Host();
// 2. Create stream.
var gazePointDataStream = host.Streams.CreateGazePointDataStream();
// 3. Get the gaze data!
gazePointDataStream.GazePoint((x, y, ts) => Console.WriteLine("Timestamp: {0}\t X: {1} Y:{2}", ts, x, y));
Hopefully this helps you out! Please let us know if we can be of further assistance.