Skip to content

Recording Data Access API

Martin Konopka edited this page Apr 23, 2018 · 2 revisions

Get most recent gaze data

GET /api/gaze

Returns the most recent raw gaze data if the recording is running. Use this service for real-time gaze data access.

Note: due to response delay being higher than the eye tracker actual sampling frequency, this service is not recommended to be used for reading complete data recording.

Request

  • Parameters: None.
  • Body: None.

Response

GazeData object.

Examples

$ curl -X GET http://localhost:55555/api/gaze

{"trackerTicks":1520490834855110,"validity":"Both","leftEye":{"validity":"Valid","gazePoint2D":{"x":0.54495026900463017,"y":0.587209920122632},"gazePoint3D":{"x":17.664712189497095,"y":140.27606983865189,"z":34.198004666362522},"eyePosition3D":{"x":-54.198213085827774,"y":40.887224934683445,"z":553.321295195394},"EyePosition3DRelative":{"x":0.65185659414328256,"y":0.3583069456794874,"z":0.34440429687492724},"pupilDiameter":5.9749908447265625},"rightEye":{"validity":"Valid","gazePoint2D":{"x":0.5325665049554118,"y":0.5608886453192099},"gazePoint3D":{"x":11.183396831597293,"y":148.37294932619511,"z":37.145031982054661},"eyePosition3D":{"x":8.4565180329127543,"y":38.68582073900734,"z":563.17174059984472},"eyePosition3DRelative":{"x":0.47177258798888033,"y":0.36884395622064403,"z":0.3772391764321128},"pupilDiameter":6.0805206298828125},"timeStamp":"2018-03-08T08:18:14.6157631+01:00"}
Clone this wiki locally