Giter VIP home page Giter VIP logo

sports-recognition's Introduction

Sports Recognition in Videos

This repository builds a classifier to predict the sport being played using Dense Trajectory Features. It works on the UCF Sports dataset and builds a multi-class classifier based on SVM using chi-squared kernel. The paper behind the project is:

Heng Wang, Alexander Kläser, Cordelia Schmid, Liu Cheng-Lin. Action Recognition by Dense Trajectories. CVPR 2011 - IEEE Conference on Computer Vision & Pattern Recognition, Jun 2011

Prerequisites

Project Setup

Run setup.sh to install all dependencies. It also builds a DenseTrack executable which gives out the features of all videos

Code Flow

  • The DenseTrack executable computes a large feature vector comprising of HOG + HOF + MBH descriptors concatenated with each other
  • The data is split into train and test with a ratio test_size
  • A codebook of size k using k-means clustering is generated in attempts
  • A bag-of-visual-words representation is created for each video using the histogram built using the above clustering
  • All the bag-of-visual-words are fed into the SVM using chi-squared kernel and classified using a One-Vs-Rest Classifier

Execution

To run the code, run Driver.py which generates the One-Vs-Rest Classifier and dumps in a model.p file and along with the codebook centers for bag-of-visual-words in centers.p.

Evaluation

The code has been evaluated on accuracy of predictions after the test and train split ratio of 0.3. Following classes have been used from the UCF Sports Dataset:

  • Diving-Side (7 videos)
  • Kicking-Front (10 videos)
  • Riding-Horse (12 videos)
  • Run-Side (13 videos)
  • SkateBoarding-Front (12 videos)
  • Swing-Bench (20 videos)
  • Swing-SideAngle (13 videos)
  • Walk-Front (22 videos)

After preliminary evaluation, we achieved a result of around 29%.

Contact

The repository has been made available at https://github.com/ChinmayJindal/sports-recognition

sports-recognition's People

Contributors

chinmayjindal avatar

Watchers

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