Git Product home page Git Product logo

sports-anno-tools's Introduction

Sports Annotation Tools

This repository contains tools for manual data annotation by operators.

It contains the following tools:

Installation

  1. Clone the repository:
git clone https://github.com/darkAlert/sports-anno-tools.git
cd sports-anno-tools
  1. Install the virtualenv package and create a new virtual environment variable named sportsvirt and then activate it:
pip3 install virtualenv
python3 -m venv sportsvirt
source sportsvirt/bin/activate
  1. Install requirements:
pip3 install -r requirements.txt

Sports Tracks Editing Tool

The tool is intended for manual editing of predicted players tracks.

How To Use

Run the tool:

python3 run_tracking_tool.py --data_dir=/path/to/your/videos

The directory /path/to/your/videos has to contain the video clips to be annotated.

After data annotation is complete, the results will be saved to /path/to/your/videos/edited_tracks.json.

If the directory /path/to/your/videos already contains edited_tracks.json, then during the running you will be prompted to load the results from it.

Control Keys

The following hotkeys can be used:

  • [ - go to the previous clip
  • ] - go to the next clip
  • Space - go to the next frame of the clip
  • Backspace - go to the previous frame of the clip
  • Enter - autoplay / pause
  • t - mark the frame as "True Positive" (by default)
  • f - mark the frame as "False Positive"
  • s - save the results to output json
  • Left Mouse Click on the frame area - mark the new position of the player
  • Right Mouse Click - delete the marked player position
  • Esc - quit (you will be prompted to save the results).

sports-anno-tools's People

Contributors

darkalert 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.