Sports Video Classification
Predict the sports activity in a short video clip
Overview
The simplest way to classify the type of video is by examining individual frames of the video ie treat individual frames as images, classify the images and then do some sort of averaging or smoothing over a few frames to predict the current display.
Once we understand what goes on here we can explore the other methods which take up more setup and compute.
The main package here is OpenCV, a library aimed at real-time computer vision tasks.
The dataset used was a collection of images curated using Google image search.
├── Sports-Type-Classifier
│ ├── data
│ │ ├── badminton [938 entries]
│ │ ├── baseball [746 entries]
│ │ ├── basketball [495 entries]
│ │ ├── boxing [705 entries]
│ │ ├── chess [481 entries]
│ │ ├── cricket [715 entries]
│ │ ├── fencing [635 entries]
│ │ ├── football [799 entries]
│ │ ├── formula1 [687 entries]
│ │ ├── gymnastics [719 entries]
│ │ ├── hockey [572 entries]
│ │ ├── ice_hockey [715 entries]
│ │ ├── kabaddi [454 entries]
│ │ ├── motogp [679 entries]
│ │ ├── shooting [536 entries]
│ │ ├── swimming [689 entries]
│ │ ├── table_tennis [713 entries]
│ │ ├── tennis [718 entries]
│ │ ├── volleyball [713 entries]
│ │ ├── weight_lifting [577 entries]
│ │ ├── wrestling [611 entries]
│ │ ├── wwe [671 entries]
Setup
The repo contains the data, Colab Jupyter notebooks and trained weights for different training regimes.