Relative Motion
from bitbox.biomechanics import relative_motion
# run the processor
rects, lands, exp_global, pose, lands_can, exp_local = processor.run_all()
# motion stats for facial landmarks relative to the neutral frame
mind, avgd, stdd, maxd = relative_motion(lands, reference=[0])# motion stats for facial landmarks relative to multiple neutral frames
mind, avgd, stdd, maxd = relative_motion(lands, reference=[0, 13, 57])
# motion stats for facial landmarks relative to average coordinates
mind, avgd, stdd, maxd = relative_motion(lands, reference='mean')
# 'mean' is the default value, so you can skip it
mind, avgd, stdd, maxd = relative_motion(lands)