Giter Club home page Giter Club logo

jump-height-calculator's Introduction

Jump Height Calculation Project

Overview

This project is designed to calculate the jump height of individuals using video analysis. By leveraging the YOLOv8 algorithm to detect and track keypoints (specifically, hips and ankles) of a person jumping, the project calculates the jump height based on the trajectory of these keypoints. This tool is particularly useful in sports science, physical education, and personal fitness to measure and analyze jump performance.

Here's a demo of jump height calculation during a Volleyball match:

Jump.Height.Calculation.Demo.mp4

Another demo:

Jump.Height.Calculation.Demo.1.mp4

Features

  • Uses YOLOv8 for accurate keypoint detection.
  • Analyzes jumps from video input, requiring the individual to jump only once in the frame.
  • Calculates jump height based on the detected keypoints' trajectory.
  • Visualizes the keypoints and jump trajectory on the video for review.

Installation

  • Python 3.x
  • OpenCV
  • Ultralytics

Usage

  1. Place your test video(s) in the test_videos directory. Ensure the video contains a single jump by an individual.
  2. Run the main script with the command:
    python main.py
    
  3. The script will process the video, calculate the jump height, and display the output with keypoints and jump trajectory overlaid on the original video. The results are also saved for further analysis.

How It Works

  1. Video Input: A video file is input to the system, which reads the video frame by frame.
  2. Keypoint Detection: Utilizes YOLOv8 to detect and track the keypoints of hips and ankles across all frames of the jump.
  3. Jump Analysis: Analyzes the trajectory of the detected keypoints to calculate the jump height.
  4. Visualization: Outputs the analyzed video with overlaid keypoints and trajectory information for review and validation.

jump-height-calculator's People

Contributors

daniyal-ahmad-khan 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.