Python script for generating heatmaps for any coordinate data using jjguy/heatmap python module.
If you want to create your own dataset from Mouse Movement data you need to install:
- pymouse
- time
- csv
If you just want to test the code you need to install:
- the Heatmaps module
- pandas
- Image
-
Before running the script, make sure you install the HEATMAP MODULE following the instructions on http://jjguy.com/heatmap/
- You can also try
pip install heatmaps
- You can also try
-
Then, make sure you have installed all the Dependencies
-
Open the calculator.py file and update the
- screen_width
- screen_height
variables to those of your own system
Once everything is setup correctly run
$ python heatmaps_release.py
to try out the demo.
If you want to create your own dataset run $ python .datafiles/create/csv_file_creator.py
. Your mouse movements will be logged on to a csv file in datafiles folder.
In the heatmaps_release.py file in init_list method change the datafile variable to the PATH of your custom dataset. Then simply run the script.
In the heatmaps_release.py file in the merge_photos method change the picture variable to the PATH of the image you want to use.
Open the calculator.py file and update the
- pic_width
- pic_height
variables to those of your image.
Then simply run the script.