You can animate a set of frames using the PigeonAnimator
. For this, you construct the animator by providing a list of tuple representing the skeleton.
imp = DLCImporter()
df = imp.import_hdf('example_data/coordinates.h5')
p_anim = PigeonAnimator([('body', 'head'), ('head', 'left_neck'), ('head', 'right_neck')])
p_anim.visualize(df, 0, 60)
There are also different pre-configured animators at your disposal.
PigeonAnimatorFactory.DEFAULT.visualize(df, 0, 60)