Skip to content

MuneebAnsari/ROUND-12

Repository files navigation

Round 12 is a personal coaching application which allows boxers to demonstrate their punching technique and recieve feedback on their balance, positioning and overall punching technique.

Round 12 was created by Muneeb Ansari and Akram Eldamaty as a hack for Hack The 6ix 2018. For additional information please visit our submission on devpost

Round 12 is an application that makes use of computer vision to detect and track keypoints on the humman body, which is known as pose estimation. We used tf-pose-estimation, a TensorFlow and OpenCv based pose estimation library for Python to detect and return the keypoints of the boxer. We used Flask to develop a web application for Round 12 and serve information from the backend to our frontend.

Specific keypoints that were tracked include; (Head, left arm (shoulder, elbow, wrist), right arm (shoulder, elbow, wrist), neck, torso, left leg, right leg). Visual found below;

We processed a video of a boxer performing a punch, by analyzing the video in frames and determining the movement of the keypoints from frame to frame. Processed video shown below;

Depending on the relative poisition of the keypoints and the angles formed between certain keypoints we were able to determine the "correctness" of the punch. We compared the movement of the keypoints throughout the punch within a margin to determine if the punch was correct by focusing on the position of the boxer's guard/block arm, posture/positioning and jab extension.

Written feedback was provided on what the boxer did well and what the boxer should improve on.

Next Steps:

  • Use data from professional boxers to train a model that determines what a correct punch truly is.
  • Provide visual feedback, perhaps an overlay on the boxer's video demonstrating what their positioning should be.