Smoothness of Motion
from bitbox.biomechanics import motion_smoothness
# run the processor
rects, lands, exp_global, pose, lands_can, exp_local = processor.run_all()
# quantify abruptness of motion for face rectangles
jerk, ldj = motion_smoothness(rects)
# quantify abruptness of motion for head pose
jerk, ldj = motion_smoothness(pose)
# quantify abruptness of motion for facial landmarks
jerk, ldj = motion_smoothness(lands)