So I'm creating a boxing game based on pose detection. Essentially every tick it takes out the angle between the shoulder, elbow and wrist and according to that it detects if it is a punch or not.
So when the angle is less the punch is loading up and when the angle is more the punch gets released.
So the low points in the data mean that the punch is loading up and the high points are the releases.
The data looks like this in graphical form
, where the blue curve is the left hand angle and the red is the right hand angle.
I also need to detect the speed at which the punch is thrown. Is there any way to do all of this?
Thanks in advance :)