Update Eyetracker Scripts HowTo authored by Jonathan Jones's avatar Jonathan Jones
...@@ -2,12 +2,15 @@ ...@@ -2,12 +2,15 @@
1. Impute AOI hits in the Tobii export file. 1. Impute AOI hits in the Tobii export file.
``` console ``` console
$ python impute_aoi_hits.py $ cd ~/repo/blocks/blocks/eyetracking/scripts
$ python impute_aoi_hits.py \
--export_file ~/Downloads/eyetracking/ADULTS_EYE-TRACKING_DATA_EXPORT_PARTICIPANTS_1-26_9-20-19.csv \
--out_dir ~/Downloads/eyetracking/imputed_aoi
``` ```
2. Segment the Tobii export file into smaller files (each one corresponds to an overhead video). 2. Segment the Tobii export file into smaller files (each one corresponds to an overhead video).
``` console ``` console
$ python segment_tobii_export.py \ $ python segment_tobii_export.py \
--tobii_export_fn ~/Downloads/eyetracking/imputed_aoi/imputed-aois_ADULTS_EYE-TRACKING_DATA_EXPORT_PARTICIPANTS_1-26_9-20-19.xlsx \ --tobii_export_fn ~/Downloads/eyetracking/imputed_aoi/imputed-aois_ADULTS_EYE-TRACKING_DATA_EXPORT_PARTICIPANTS_1-26_9-20-19.csv \
--video_metadata_fn ~/blocks/data/input/blocks_file_index.xlsx \ --video_metadata_fn ~/blocks/data/input/blocks_file_index.xlsx \
--out_dir ~/Downloads/eyetracking/imputed_and_segmented --out_dir ~/Downloads/eyetracking/imputed_and_segmented
``` ```
...@@ -17,15 +20,17 @@ ...@@ -17,15 +20,17 @@
``` ```
4. Move segmented Tobii export files and eyetracker label files to the remove server. 4. Move segmented Tobii export files and eyetracker label files to the remove server.
``` console ``` console
$ cp ~/eyetracker_labels /Volumes/lcsr-cogsci$/ProcessedData/eyetracker_labels $ cp ~/Downloads/eyetracker_labels /Volumes/lcsr-cogsci$/ProcessedData/eyetracker-labels
$ cp ~/eyetracker_segments /Volumes/lcsr-cogsci$/ProcessedData/eyetracker_segments $ cp ~/Downloads/imputed_and_segmented /Volumes/lcsr-cogsci$/ProcessedData/segmented-tobii-export
5. Parse annotations and compute action times. 5. Parse annotations and compute action times.
``` console ``` console
$ cd ../../analysis
$ python compute_stats.py $ python compute_stats.py
``` ```
6. Count AOI visits. 6. Count AOI visits.
``` console ``` console
$ cd -
$ python count_aoi_visits.py $ python count_aoi_visits.py
``` ```
... ...
......