Giter Site home page Giter Site logo

heatmapgenerator's Introduction

HeatmapGenerator

C# console application: generates heatmaps from eye-tracking data (JSON) and image files (BMP). Creates "instantaneous" or global heatmaps, and videos (with addons).

What it does

  1. Reads eye-tracking data in JSON format (see samples).
  2. Generates intensity heatmap using Gaussian smoothing (kernel) function.
  3. Combines background image with heatmap using alpha compositing.
  4. Optionally generates video using ffmpeg and mp4fpsmod tools.

Setup

  1. Ensure the eye-tracking data and image files are in the correct format and folder organisation. Or: modify the read-in code. See sample provided
  2. Install ffmpeg and fpsmp4mod and add them to your system path (optional; for video):
    • The latest ffmpeg build is here. Setup instructions here.
    • The latest mp4fpsmod build is on this page.

Running the tool

  1. Select the function:
    • "generate instantaneous heatmaps" creates heatmap images (png) for individual frames. After they are generated there is the option to create a video.
    • "generate global heatmaps" creates a single heatmap image (png) for eye-tracking data over a given range.
  2. Select the folder containing the image frames.
  3. Enter the start and end frames to read, in ms:
    • For instantaneous heatmaps, this is the range of frames to generate (png) images for; or the timespan of the video.
    • For global heatmaps, the start time defines the specific image to draw the heatmap over. The end frame defines the period of time over which eye-tracking points are generated.

heatmapgenerator's People

Contributors

chris-mcdo avatar dependabot[bot] avatar

Watchers

 avatar  avatar

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.