GithubHelp home page GithubHelp logo

roboflow / sports Goto Github PK

View Code? Open in Web Editor NEW
1.9K 39.0 176.0 4.72 MB

computer vision and sports

License: MIT License

Python 100.00%
computer-vision deep-learning deep-neural-networks image-embeddings keypoint-detection object-detection tutorial football soccer sports soccer-analytics soccer-data sports-analytics sports-data visualization football-data

sports's Introduction

πŸ‘‹ hello

In sports, every centimeter and every second matter. That's why Roboflow decided to use sports as a testing ground to push our object detection, image segmentation, keypoint detection, and foundational models to their limits. This repository contains reusable tools that can be applied in sports and beyond.

πŸ₯΅ challenges

Are you also a fan of computer vision and sports? We welcome contributions from anyone who shares our passion! Together, we can build powerful open-source tools for sports analytics. Here are the main challenges we're looking to tackle:

  • Ball tracking: Tracking the ball is extremely difficult due to its small size and rapid movements, especially in high-resolution videos.
  • Reading jersey numbers: Accurately reading player jersey numbers is often hampered by blurry videos, players turning away, or other objects obscuring the numbers.
  • Player tracking: Maintaining consistent player identification throughout a game is a challenge due to frequent occlusions caused by other players or objects on the field.
  • Player re-identification: Re-identifying players who have left and re-entered the frame is tricky, especially with moving cameras or when players are visually similar.
  • Camera calibration: Accurately calibrating camera views is crucial for extracting advanced statistics like player speed and distance traveled. This is a complex task due to the dynamic nature of sports and varying camera angles.

πŸ’» install

We don't have a Python package yet. Install from source in a Python>=3.8 environment.

pip install git+https://github.com/roboflow/sports.git

⚽ datasets

use case dataset
soccer player detection Download Dataset
soccer ball detection Download Dataset
soccer pitch keypoint detection Download Dataset

Visit Roboflow Universe and explore other sport-related datasets.

πŸ”₯ demos

football-ai.mp4

πŸ† contribution

We love your input! Let us know what else we should build!

sports's People

Contributors

skalskip avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

sports's Issues

Include ball in radar view?

Great project! Thanks for sharing. I hope to test it out more extensively in the near future.

Is it possible to include the ball position in the radar view? That would give a bit more context to the player movements.

How to run all three models at once

I have setup and installed all dependencies but when I pass this argument

#python examples/soccer/main.py --source_video_path examples/soccer/data/001.mp4 --target_video_path examples/soccer/data/001_output.mp4Β --deviceΒ cuda

I made very minor changes to make it run on gpu rest code is same
It runs only the first PLAYER_DETECTION model
Maybe my argument is wrong please tell me how to run the model so I get output as displayed

ModuleNotFoundError: No module named 'sports'

Hi @SkalskiP,

I was running the main.py inside the examples/soccer in my local system and getting an error like the following:

Roboflow-sports1

I moved the main.py to outside along with setup.py
Fortunately it worked. I was thinking if possible you could give it a look.

Thanks

Cannot find reusable code

Hi!

I was wondering where the bulk of your logic is in this project. You mention in the ReadMe that the code is migrating, what does that mean?

Code / Documentation

Where can i find the code or the documentation to achieve the same results as the demo video provided. I couldn't find the main file where all the classes and helper function were called.

Camera calibration

First of all, congratulations for sharing such nice project with the community πŸŽ‰

I see that in your blog posts and in the README, it is mentioned "camera calibration", but what is actually done is the homography estimation, which is different than camera calibration.

Camera calibration and homography estimation are related, but are distinct concepts.

Support for Table tennis

It would be good if there was some example support for table tennis. There is a model detection model here: https://github.com/sisrfeng/TTNet. If that can be used, maybe adding support to figure out when a point starts and when it ends would be helpful in analyzing matches

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.