aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorThéo de la Hogue2024-01-18 17:57:13 +0100
committerThéo de la Hogue2024-01-18 17:57:13 +0100
commit770ed5587bd7deba2a746960c362fe059e0e170e (patch)
tree0571082bb572e11367971aaf9e0c7a11ae545259 /docs
parent9bd6a05c025bfe25883c3df4a59e82482d1928ff (diff)
downloadargaze-770ed5587bd7deba2a746960c362fe059e0e170e.zip
argaze-770ed5587bd7deba2a746960c362fe059e0e170e.tar.gz
argaze-770ed5587bd7deba2a746960c362fe059e0e170e.tar.bz2
argaze-770ed5587bd7deba2a746960c362fe059e0e170e.tar.xz
Allowing to log aoi scan path analysis.
Diffstat (limited to 'docs')
-rw-r--r--docs/user_guide/gaze_analysis_pipeline/advanced_topics/scripting.md9
1 files changed, 6 insertions, 3 deletions
diff --git a/docs/user_guide/gaze_analysis_pipeline/advanced_topics/scripting.md b/docs/user_guide/gaze_analysis_pipeline/advanced_topics/scripting.md
index b888b9e..9c20c7a 100644
--- a/docs/user_guide/gaze_analysis_pipeline/advanced_topics/scripting.md
+++ b/docs/user_guide/gaze_analysis_pipeline/advanced_topics/scripting.md
@@ -72,7 +72,7 @@ for name, ar_layer in ar_frame.layers.items():
...
# Look ArFrame at a timestamped gaze position
- gaze_position, gaze_movement, scan_path_analysis, execution_times, exception, layers_look_data = ar_frame.look(timestamp, gaze_position)
+ gaze_position, gaze_movement, scan_path_analysis, execution_times, exception, layers = ar_frame.look(timestamp, gaze_position).values()
# Check if a gaze movement has been identified
if gaze_movement.valid and gaze_movement.finished:
@@ -98,9 +98,12 @@ for name, ar_layer in ar_frame.layers.items():
...
# Do something with each ArLayer look data
- for layer_name, layer_look_data in layers_look_data.items():
+ for layer_name, layer_look_data in layers.items():
- looked_aoi_name, looked_aoi, aoi_scan_path_analysis, layer_execution_times, layer_exception = layer_look_data
+ gaze_movement, looked_aoi_name, looked_aoi, aoi_scan_path_analysis, layer_execution_times, layer_exception = layer_look_data.values()
+
+ # Do something with gaze movement
+ ...
# Do something with looked AOI name
...