To analyze the eye tracking data that you have collected, you will generate a heatmap and a replay that depicts the areas where your participant's gaze was focused.
- Once you're in the desired folder, download the project files using
git clone https://github.com/cs1300-2022/cs1300-eyetracking.git
- Copy or move your data files from eye tracking into the downloaded folder (for each eye tracking session, there should be a CSV file and a screenshot)
- For each session, generate a heatmap and a replay using the following code:
- Open heatmap.html in a text editor and fill in the TODOs, which involve filling in file names and the dimensions of your screenshot (so that the heatmap can be properly overlayed).
- Similar to heatmap.html, open replay.html in a text editor and fill in the TODOs. One of the TODOs involves setting the variable
isPersistent
, which by default is true. Feel free to play around with this :) - This file will render an animation of the eye tracking path of the user using circles. Imagine a pen leaving a trail exactly where your eye has been looking. Note that setting
isPersistent
to false will not leave a lasting trail.
- If you do not have Python, download and install it for Mac or for Windows.
- To test your code, open the Terminal, navigate to the folder that contains heatmap.html and replay.html, and run the following command to launch your Python server (to check what version of python you have, you can run python --version in your terminal):
- If you have Python2:
python -m SimpleHTTPServer 8000
- If you have Python3:
python -m http.server 8000
orpython3 -m http.server 8000
- If you have Python2:
- Once your Python server is running, the visualizations will be displayed at this URL (remember to navigate to the proper directory when setting up the server): http://localhost:8000/heatmap.html and http://localhost:8000/replay.html
- For each eye tracking session, take 3 screenshots of your work:
- Your heatmap.
- An “action shot” of replay.html (i.e. before it’s done drawing)
- A final shot of replay.html at the end of the drawing stage
- Include those screenshots with your modified prototypes in your final handin. In total, you should have 6 screenshots (3 screenshots each for 2 eye tracking sessions).
- Write 2-3 sentences interpreting results of your visualization. Did the results match your expectations you set out in your qualitative eye tracking hypothesis?
Thanks to Angel Cheung, Jeff, and other F2019 TAs