Giter VIP home page Giter VIP logo

rectangle-labelling's Introduction

rectangle-labelling

Python interface allowing to label key points on a trampoline, to counter the fisheye effect on videos, to distort an image to get a plane rectangle, to create a heatmap in the reference frame of the rectangle and to measure significant differences between the heatmaps (this part is in matlab).

To install:

conda create --name [name] python=3.9

conda activate [name]

conda install -c conda-forge scipy numpy opencv pytorch pickle tqmd jupyter ipywidgets

Also need matlab and the fieldtrip toolbox (follow instruction here to request a version https://www.fieldtriptoolbox.org/)

Workflow:

  1. Calibrate for fisheye lens with de-distort_fisheye/Fisheye_calibration.py -> saves matrix to Fisheye_KD_matrix.pkl
  2. Dedistort image to correct for fisheye effect with de-distort_fisheye/Fisheye_corrections.py -> saves to [movie_file]_undistorted_images.pkl
  3. Manually label the key points of the trampoline with labeller/rectangle-labeler-video-suplementay-info.py -> saves to [movie_file]_labeling_points.pkl
  4. Get the gaze heatmaps with rectangle_heatmap/create_gaussian_heatmap.py-> saves to -> output/Results/[subject name]/[movement name]/[movie_file]heat_map[i].pkl
  5. Get the significant differences between the heatmaps with Stats_diff_heatmaps.m -> saves to output/Stats_diffs/[group names]_[movement name]_stats_diffs.mat

rectangle-labelling's People

Contributors

evecharbie avatar

Watchers

 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.