Giter VIP home page Giter VIP logo

gopro-skiing-analysis's Introduction

GoPro skiing analysis

A tool for extracting GPS data from GoPro videos and analyzing them in the context of skiing. The main purpose is to find videos with valid GPS data.

GPS data extraction

Initialize GPS Extractor Node app by running:

cd GPSExtractor
npm install

The extraction script will recursively iterate through the requested directory, find all videos, merge videos separated into chunks by the camera, and generate .geojson files for each video. Extraction is executed by the extractGPS.py Python script that utilizes the Node app.

python3 extractGPS.py video_directory_path geojson_directory_path

The Node app basically just wraps this and this great library provided by JuanIrache.

Picking videos

A step needed if there are a lot of videos, with most of them having invalid GPS data (this was the reason for creating this script). To automatically analyze all of the videos and display some stats and movement plots of the valid ones, run:

python3 findInterestingVideos.py geojson_directory_path --display_trajectory

Creating an animated 3D plot

To create a fun animated 3D graph showing the movement trajectory, color-coded using the movement speed, run the animatedGraph.py. Consult the script help -h for animation parameters such as the speedup coefficient and the camera revolution duration, and try out multiple combinations for the best results.

python3 animatedGraph.py geojson_file_path output_video_file_path --speedup_coefficient 12 --revolution_duration_s 8 --remove_no_movement

Animated plot

gopro-skiing-analysis's People

Contributors

nikolajov96 avatar

Watchers

James Cloos 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.