Update Eyetracker Scripts HowTo authored by Jonathan Jones's avatar Jonathan Jones
...@@ -7,10 +7,10 @@ To use the script: ...@@ -7,10 +7,10 @@ To use the script:
* Go to the 'src' file within the 'Blocks' folder. Open the script 'eyetracker_data_imputation.py' with a text editor. In file_list, write the names (and paths if need be) to the data export files to be processed. These files should be for the same task. Next to 'set_name', write the name of the task completed in the videos as it is defined in the Tobii Pro Lab software. Save the file. * Go to the 'src' file within the 'Blocks' folder. Open the script 'eyetracker_data_imputation.py' with a text editor. In file_list, write the names (and paths if need be) to the data export files to be processed. These files should be for the same task. Next to 'set_name', write the name of the task completed in the videos as it is defined in the Tobii Pro Lab software. Save the file.
* Open the terminal. Navigate to the blocks source directory and run the script: * Open the terminal. Navigate to the blocks source directory and run the script:
``` bash ``` bash
user@host:~$ cd repo/blocks/src user@host:~$ cd repo/blocks/src
user@host:~/repo/blocks/src$ python eyetracker_data_imputation.py user@host:~/repo/blocks/src$ python eyetracker_data_imputation.py
``` ```
New files will be saved that included the imputed 1s without changing the original data export file. New files will be saved that included the imputed 1s without changing the original data export file.
...@@ -23,10 +23,10 @@ To use the script: ...@@ -23,10 +23,10 @@ To use the script:
* Open the file 'eyetracker_calculate_visit_counts.py' from the src file in the Blocks folder with a text editor. Fill in the name of the data export file you would like to calculate the visits from, the name of the file that contains the state data, and the name of the task that the data corresponds as defined in Tobii Pro Lab. Save the file. * Open the file 'eyetracker_calculate_visit_counts.py' from the src file in the Blocks folder with a text editor. Fill in the name of the data export file you would like to calculate the visits from, the name of the file that contains the state data, and the name of the task that the data corresponds as defined in Tobii Pro Lab. Save the file.
* Open the terminal. Navigate to the blocks source directory and run the script: * Open the terminal. Navigate to the blocks source directory and run the script:
``` bash ``` bash
user@host:~$ cd repo/blocks/src user@host:~$ cd repo/blocks/src
user@host:~/repo/blocks/src$ python eyetracker_calculate_visit_counts.py user@host:~/repo/blocks/src$ python eyetracker_calculate_visit_counts.py
``` ```
This program will output a new data file that is identical to the state data file with added columns that include the visit counts for each area of interest. The original files will not be changed. This program will output a new data file that is identical to the state data file with added columns that include the visit counts for each area of interest. The original files will not be changed.
...@@ -40,9 +40,9 @@ To use the script: ...@@ -40,9 +40,9 @@ To use the script:
* Open the 'config' folder in Blocks folder with a text editor. Write the video numbers you would like to align in the file 'align_data.txt'. * Open the 'config' folder in Blocks folder with a text editor. Write the video numbers you would like to align in the file 'align_data.txt'.
* Open the terminal. Navigate to the blocks source directory and run the script: * Open the terminal. Navigate to the blocks source directory and run the script:
``` bash ``` bash
user@host:~$ cd repo/blocks/src user@host:~$ cd repo/blocks/src
user@host:~/repo/blocks/src$ python convert_annotated_label_frames_to_eyetracker_data_indices.py user@host:~/repo/blocks/src$ python convert_annotated_label_frames_to_eyetracker_data_indices.py
``` ```
* New files identical to the annotated labels files but with indices that reference the eye-tracking data rather than the overhead camera frames will be saved. The original file will be untouched. * New files identical to the annotated labels files but with indices that reference the eye-tracking data rather than the overhead camera frames will be saved. The original file will be untouched.