Track with DeepLabCut
Body points in every frame, at 25 frames per second. This demo uses the DeepLabCut tracking published with the dataset (13 points). For a new top-view video, the pretrained SuperAnimal-TopViewMouse model gives keypoints with no labeling or training. We align each pose to the body axis, scale it by body length, and add the distance to the arena walls.
import deeplabcut
deeplabcut.video_inference_superanimal(
["my_mouse.mp4"], "superanimal_topviewmouse",
model_name="hrnet_w32",
detector_name="fasterrcnn_mobilenet_v3_large_fpn")