Counting swings and stabs

I found an thread on the MapleLegends forums where the author was curious about the probability of attack animations.

It is possible to programmatically count the number of swings and stabs of attacks from video recordings, without resorting to packet sniffing or reversing game assets. I tested this with a pair of Sky Skis using booster for speed. The data suggests that the stab:swing ratio is 2:3.

Find the source here.

Summary of all trials

namestabswingtotalstab_pctswing_pct
0045561010.4460.554
0137661030.3590.641
0234681020.3330.667
0350521020.490.51
0448531010.4750.525
0542601020.4120.588
0633681010.3270.673
0735671020.3430.657
0835661010.3470.653
0947551020.4610.539
total40661110170.3990.601

Analysis for trial data

Click on the video to begin. Clicking on the plot or table will bring the video to that frame. Classification confidence is calculated by a Ridge classifier trained on template matching intensities over a window of 4 frames.

Trial 00