Git Product home page Git Product logo

heatmaps-python2.7's Introduction

Heatmaps in Python 2.7

Python script for generating heatmaps for any coordinate data using jjguy/heatmap python module.

Dependencies

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

The generated heatmaps look like these

How to run the script

  • 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
  • Then, make sure you have installed all the Dependencies

  • Open the calculator.py file and update the

    1. screen_width
    2. screen_height

    variables to those of your own system

Once everything is setup correctly run $ python heatmaps_release.py to try out the demo.

Creating a dataset

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.

Genetating a heatmap from your custom dataset

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.

Adding a custom image

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

  1. pic_width
  2. pic_height

variables to those of your image.

Then simply run the script.

heatmaps-python2.7's People

Contributors

anapt avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

zumbalamambo

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.