taikoma / TennisVideoAnalysis

Video analysis tool for tennis
MIT License
30 stars 7 forks source link

TennisVideoAnalysis

Video analysis tool for tennis

テニス試合分析用の映像解析ツール

DEMO

FeaturesreadImage

Video analysis for tennis game.
You can get tracking data, player positions and ball positions.
And can create some plots like this figure.

Installation

$ git clone git@github.com:taikoma/TennisVideoAnalysis.git

Requirements

scipy==1.3.1
numpy==1.16.4
opencv_python==4.1.0.25
matplotlib==3.1.1
pandas==1.0.5
Pillow==7.1.2
scipy==1.5.0
torch==1.5.1
torchvision==0.6.1

$ pip install -r requirements.txt

AI predict position of the ball and player

If you want to use this features, you need to install this packages.
torch==1.5.1
torchvision==0.6.1

Make Changes TennisVideoAnalysis.py

self.mode_predict=True
self.mode_predictPlayer=True

Usage

$ python TennisVideoAnalysis.py

Author

@otakoma

License

This software is released under the MIT License, see LICENSE. MIT license.

ブログ記事

テニスの試合動画のシーン分割を自動化

西岡良仁選手のテニスの試合データ(ボール着地点、選手位置データ)を公開します

テニスの映像分析ツールでボール着地点・選手の位置データを記録し、西岡・ナカシマ戦を分析

テニスの動画分析ツールにAI技術を取り入れ一部作業を自動化

自作したテニスのビデオ分析ツールで錦織・デルポトロ戦を分析してみました