Tobii Pro Glasses 2
ArGaze provides a ready-made context to work with Tobii Pro Glasses 2 devices.
To select a desired context, the JSON samples have to be edited and saved inside an ArContext configuration file. Notice that the pipeline entry is mandatory.
{
JSON sample
"pipeline": ...
}
Read more about ArContext base class in code reference.
Live Stream
Bases: ArFeatures.DataCaptureContext
address: str
property
writable
Network address where to find the device.
battery: int
property
Tobii device battery level.
configuration: dict
property
writable
Edit system configuration dictionary.
participant: str
property
writable
Participant name
project: str
property
writable
Project name.
calibrate()
Handle whole Tobii glasses calibration process.
create_recording(name='', notes='')
Create a new recording on the Tobii interface's SD Card.
get_calibration_status()
Get calibration status.
Returns: |
|
---|
get_recording_status()
Get recording status.
Returns: |
|
---|
get_recordings()
Get all recordings' id.
image(**kwargs)
Get pipeline image with data capture information.
pause_recording()
Pause recording.
start_recording()
Start recording.
stop_recording()
Stop recording.
JSON sample
{
"argaze.utils.contexts.TobiiProGlasses2.LiveStream": {
"name": "Tobii Pro Glasses 2 live stream",
"address": "10.34.0.17",
"project": "my_experiment",
"participant": "subject-A",
"configuration": {
"sys_ec_preset": "Indoor",
"sys_sc_width": 1920,
"sys_sc_height": 1080,
"sys_sc_fps": 25,
"sys_sc_preset": "Auto",
"sys_et_freq": 50,
"sys_mems_freq": 100
},
"pipeline": ...
}
}
Segment Playback
Bases: ArFeatures.DataPlaybackContext
duration: int | float
property
Get data duration.
end: float
property
writable
End reading timestamp in millisecond.
progression: float
property
Get data playback progression between 0 and 1.
segment: str
property
writable
Path to segment folder.
start: float
property
writable
Start reading timestamp in millisecond.
sync_event: str
property
writable
Optional event type dedicated to syncrhonize Tobii timestamps with external time source.
sync_event_unit: str
property
writable
Define sync event unit for conversion purpose ('µs', 'ms' or 's')
JSON sample
{
"argaze.utils.contexts.TobiiProGlasses2.SegmentPlayback" : {
"name": "Tobii Pro Glasses 2 segment playback",
"segment": "./src/argaze/utils/demo/tobii_record/segments/1",
"pipeline": ...
}
}