diff options
author | Théo de la Hogue | 2024-09-04 13:56:36 +0200 |
---|---|---|
committer | Théo de la Hogue | 2024-09-04 13:56:36 +0200 |
commit | be8a44033bd490ea7f4ddb1514a9cc2888affb88 (patch) | |
tree | 3274e4157e4618749d70c8cd1788ee3644b0aaca /docs/user_guide/eye_tracking_context/context_modules | |
parent | 08c48347a140becc5e4b60e03f2979305166a079 (diff) | |
download | argaze-be8a44033bd490ea7f4ddb1514a9cc2888affb88.zip argaze-be8a44033bd490ea7f4ddb1514a9cc2888affb88.tar.gz argaze-be8a44033bd490ea7f4ddb1514a9cc2888affb88.tar.bz2 argaze-be8a44033bd490ea7f4ddb1514a9cc2888affb88.tar.xz |
Improving CVS file parsing. Documenting CSV file support.
Diffstat (limited to 'docs/user_guide/eye_tracking_context/context_modules')
-rw-r--r-- | docs/user_guide/eye_tracking_context/context_modules/file.md | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/docs/user_guide/eye_tracking_context/context_modules/file.md b/docs/user_guide/eye_tracking_context/context_modules/file.md new file mode 100644 index 0000000..8a66b83 --- /dev/null +++ b/docs/user_guide/eye_tracking_context/context_modules/file.md @@ -0,0 +1,35 @@ +File +====== + +ArGaze provides a ready-made contexts to read data from various file format. + +To select a desired context, the JSON samples have to be edited and saved inside an [ArContext configuration](../configuration_and_execution.md) file. +Notice that the *pipeline* entry is mandatory. + +```json +{ + JSON sample + "pipeline": ... +} +``` + +Read more about [ArContext base class in code reference](../../../argaze.md/#argaze.ArFeatures.ArContext). + +## CSV + +::: argaze.utils.contexts.File.CSV + +### JSON sample + +```json +{ + "argaze.utils.contexts.File.CSV": { + "name": "CSV file data playback", + "path": "./src/argaze/utils/demo/gaze_positions.csv", + "timestamp_column": "Timestamp (ms)", + "x_column": "Gaze Position X (px)", + "y_column": "Gaze Position Y (px)", + "pipeline": ... + } +} +``` |