from_anipose_style_df#
- movement.io.load_poses.from_anipose_style_df(df, fps=None, individual_name='individual_0')[source]#
Create a
movement
poses dataset from an Anipose 3D dataframe.- Parameters:
df (pd.DataFrame) – Anipose triangulation dataframe
fps (float, optional) – The number of frames per second in the video. If None (default), the
time
coordinates will be in frame units.individual_name (str, optional) – Name of the individual, by default “individual_0”
- Returns:
movement
dataset containing the pose tracks, confidence scores, and associated metadata.- Return type:
Notes
Reshape dataframe with columns keypoint1_x, keypoint1_y, keypoint1_z, keypoint1_score,keypoint2_x, keypoint2_y, keypoint2_z, keypoint2_score…to array of positions with dimensions time, space, keypoints, individuals, and array of confidence (from scores) with dimensions time, keypoints, individuals.