diff options
Diffstat (limited to 'docs/user_guide/gaze_analysis_pipeline/advanced_topics')
-rw-r--r-- | docs/user_guide/gaze_analysis_pipeline/advanced_topics/scripting.md | 32 |
1 files changed, 23 insertions, 9 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 4e2be92..ab0c6d0 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, layers_analysis, execution_times, exception = ar_frame.look(timestamp, gaze_position) + gaze_position, gaze_movement, scan_path_analysis, execution_times, exception, layers_look_data = ar_frame.look(timestamp, gaze_position) # Check if a gaze movement has been identified if gaze_movement.valid and gaze_movement.finished: @@ -90,18 +90,32 @@ for name, ar_layer in ar_frame.layers.items(): for data, value in analysis.items(): ... - # Do something with each layer AOI scan path analysis - for layer_name, layer_aoi_scan_path_analysis in layers_analysis.items(): - for module, analysis in layer_aoi_scan_path_analysis.items(): + # Do something with ArFrame look execution times + ... + + # Do something with ArFrame look exception + if exception: + ... + + # Do something with each ArLayer look data + for layer_name, layer_look_data in layers_look_data.items(): + + looked_aoi_name, aoi_scan_path_analysis, layer_execution_times, layer_exception = layer_look_data + + # Do something with looked AOI name + ... + + # Do something with ArLayer AOI scan path analysis + for module, analysis in aoi_scan_path_analysis.items(): for data, value in analysis.items(): ... - # Do something with pipeline execution times - ... + # Do something with ArLayer look execution times + ... - # Do something with pipeline exception - if exception: - ... + # Do something with ArLayer look exception + if exception: + ... ``` Let's understand the meaning of each returned data. |