Git Product home page Git Product logo

punch_dl's Introduction

Deep learning models for punch classification in boxing and karate

This repository contains data and code with our punch classification experiments. We are using acceleration sensors measurements and video frames for punch class recognition.

DOI_10.1109ACCESS.2021.3118038 directory contains data and code for reproducing classification metric results for article 'Recognition punches in karate using acceleration sensors and convolution neural networks'.

code directory contains:

  • MoveNetExtractKeypoints.ipynb - keypoints extraction for punch videos. Save it to data/keypoints
  • RNN-LSTM-GRU.ipynb - vanilla RNN as baseline.
  • GRU-NormalizeMidPoint.ipynb - keypoints coordinates normalized to middle point (btw left and right hips).

models directory contains training results keras and tflite models.

Starting videos available here.
On each video man with unique id have done 10 weak (5 left and 5 right hand) and 10 strong punches. Total 240 punches in dataset v0.1 We start with only punch class prediction, no power estimation.

Box punches classes:
0. no punch,

  1. jab (jab left),
  2. cross (jab right),
  3. left hook,
  4. right hook,
  5. left uppercut,
  6. right uppercut.
  7. jab (jab left) strong, etc.

Docker

Build docker

docker build -t punch_dl:v2 .

Run docker

docker run -p 8888:8888 -v "$(pwd)":/tf punch_dl:v2

Other

IF you want to keep google colab 2 spaces indentation in jupyter notebook, please visit: https://stackoverflow.com/questions/19068730/how-do-i-change-the-autoindent-to-2-space-in-ipython-notebook

TODO

TODO:

  • Extract keypoints frame by frame to *.npy files.
  • Label frames to defined classes.
  • Experiment with recurrent models to punch classification.
  • Add some advanced features, e.g. angles, distances e.t.c.
  • Experiment with convolution models to punch classification.
  • Get more videos.

Links:

Awesome Action Recognition
https://github.com/jinwchoi/awesome-action-recognition

punch_dl's People

Contributors

balezz avatar azhur771 avatar marwanbit 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.