aboutsummaryrefslogtreecommitdiff
path: root/docs/user_guide/gaze_analysis_pipeline/timestamped_gaze_positions_edition.md
diff options
context:
space:
mode:
authorThéo de la Hogue2023-08-28 15:05:01 +0200
committerThéo de la Hogue2023-08-28 15:05:01 +0200
commitf93d3e2b011fe1c1de93d0094ca45584ddd49936 (patch)
treea627bdcf45da2a63caaf40d66a12668301acff63 /docs/user_guide/gaze_analysis_pipeline/timestamped_gaze_positions_edition.md
parenteb8915ec0750699695e4d70af4abef56f56fbe9f (diff)
downloadargaze-f93d3e2b011fe1c1de93d0094ca45584ddd49936.zip
argaze-f93d3e2b011fe1c1de93d0094ca45584ddd49936.tar.gz
argaze-f93d3e2b011fe1c1de93d0094ca45584ddd49936.tar.bz2
argaze-f93d3e2b011fe1c1de93d0094ca45584ddd49936.tar.xz
Improving gaze analysis pipeline documentation.
Diffstat (limited to 'docs/user_guide/gaze_analysis_pipeline/timestamped_gaze_positions_edition.md')
-rw-r--r--docs/user_guide/gaze_analysis_pipeline/timestamped_gaze_positions_edition.md9
1 files changed, 5 insertions, 4 deletions
diff --git a/docs/user_guide/gaze_analysis_pipeline/timestamped_gaze_positions_edition.md b/docs/user_guide/gaze_analysis_pipeline/timestamped_gaze_positions_edition.md
index e7deab2..3b30bf8 100644
--- a/docs/user_guide/gaze_analysis_pipeline/timestamped_gaze_positions_edition.md
+++ b/docs/user_guide/gaze_analysis_pipeline/timestamped_gaze_positions_edition.md
@@ -22,8 +22,8 @@ ts_gaze_positions = GazeFeatures.TimeStampedGazePositions.from_dataframe(datafra
# Iterate over timestamped gaze positions
for timestamp, gaze_position in ts_gaze_positions.items():
- # Do something with each timestamped gaze position
- ...
+ # Do something with each timestamped gaze position
+ ...
```
## Edit gaze positions from live stream
@@ -36,6 +36,7 @@ from argaze import GazeFeatures
# Assuming to be inside the function where timestamp_µs, gaze_x and gaze_y values are catched
...
+
# Edit a second timestamp from a microsecond second timestamp
timestamp = timestamp_µs * 1e-6
@@ -43,7 +44,7 @@ from argaze import GazeFeatures
gaze_position = GazeFeatures.GazePosition((gaze_x, gaze_y))
# Do something with each timestamped gaze position
- ...
+ ...
```
``` python
@@ -64,7 +65,7 @@ start_time = time.time()
gaze_position = GazeFeatures.GazePosition((gaze_x, gaze_y))
# Do something with each timestamped gaze position
- ...
+ ...
```
!!! warning