Changes
Page history
Update Eyetracker Scripts HowTo
authored
Oct 22, 2019
by
Jonathan Jones
Show whitespace changes
Inline
Side-by-side
Eyetracker-Scripts-HowTo.md
View page @
d8a458ce
...
...
@@ -2,12 +2,15 @@
1.
Impute AOI hits in the Tobii export file.
```
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).
```
console
$
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 \
--out_dir ~/Downloads/eyetracking/imputed_and_segmented
```
...
...
@@ -17,15 +20,17 @@
```
4.
Move segmented Tobii export files and eyetracker label files to the remove server.
```
console
$
cp
~/eyetracker_labels /Volumes/lcsr-cogsci
$/
ProcessedData/eyetracker
_
labels
$
cp
~/
eyetracker
_segment
s
/Volumes/lcsr-cogsci
$/
ProcessedData/
eyetracker_segments
$
cp
~/
Downloads/
eyetracker_labels /Volumes/lcsr-cogsci
$/
ProcessedData/eyetracker
-
labels
$
cp
~/
Downloads/imputed_and
_segment
ed
/Volumes/lcsr-cogsci
$/
ProcessedData/
segmented-tobii-export
5. Parse annotations and compute action times.
```
console
$ cd ../../analysis
$ python compute_stats.py
```
6. Count AOI visits.
```
console
$ cd -
$ python count_aoi_visits.py
```
...
...
...
...