Giter VIP home page Giter VIP logo

fencing_tracking_example's Introduction

Fencing Tracking Example

The purpose of this project is to showcase how ChatGPT can serve as a valuable programming aid, particularly when working with unfamiliar libraries. The videos are quite long and are meant so that someone could follow along and reproduce the process if so desired.

Here is a link to the Google Drive folder containing the data files.

I utilized ChatGPT to demonstrate how it can effectively handle the majority of coding tasks in a Google Colab notebook that analyzes a Fencing Action and acts as a fencing referee to determine touches. To accomplish this, I divided the project into three main sections: Data Collection, Detection and Tracking, and Model Training.

For Data Collection, I leveraged footage from the Red Strip captured during Day 2 of the European Fencing Championships. Using the overlay from the video, I detected instances when touches were scored and extracted the corresponding scores. Next, I sorted the Epee and Saber clips based on scores resulting in a point and when the clock read 3:00 minutes.

Using the clips obtained during Data Collection, I employed YoloV8 by Ultralytics in conjunction with Roboflow to assist with dataset management and create a customized detection model. Subsequently, I utilized this model, along with basic tracking analysis, to trace the paths of the fencers' bellguards. By analyzing the bellguard positions, I derived the acceleration of the bellguards and combined the bellguard x_position acceleration with the frames when the colored lights turned on. This information was then saved in comma-separated values (CSV) files. Additionally, I appended the touch data for each clip, which was obtained from the overlay analysis conducted earlier.

Following the recommendations of ChatGPT, I employed a Gate Recurrent Unit (GRU) model to process the collected data. Due to the simplicity of the data and a relatively small number of inputs, the model trained quickly. Subsequently, I applied the trained model to analyze Clips 1, 2, and 3, which were extracted from the Blue Piste footage captured during the same event.

By following this approach, I demonstrated how ChatGPT can be a valuable asset in automating various aspects of a fencing analysis workflow.

fencing_tracking_example's People

Contributors

benkohn2004 avatar

Watchers

 avatar

Forkers

zhaoxianglin

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.