movement.io.validators.ValidPosesDataset#

class movement.io.validators.ValidPosesDataset(*, position_array, confidence_array=None, individual_names=None, keypoint_names=None, fps=None, source_software=None)[source]#

Class for validating data intended for a movement dataset.

position_array#

Array of shape (n_frames, n_individuals, n_keypoints, n_space) containing the poses.

Type:

np.ndarray

confidence_array#

Array of shape (n_frames, n_individuals, n_keypoints) containing the point-wise confidence scores. If None (default), the scores will be set to an array of NaNs.

Type:

np.ndarray, optional

individual_names#

List of unique names for the individuals in the video. If None (default), the individuals will be named “individual_0”, “individual_1”, etc.

Type:

list of str, optional

keypoint_names#

List of unique names for the keypoints in the skeleton. If None (default), the keypoints will be named “keypoint_0”, “keypoint_1”, etc.

Type:

list of str, optional

fps#

Frames per second of the video. Defaults to None.

Type:

float, optional

source_software#

Name of the software from which the poses were loaded. Defaults to None.

Type:

str, optional

__init__(*, position_array, confidence_array=None, individual_names=None, keypoint_names=None, fps=None, source_software=None)#

Method generated by attrs for class ValidPosesDataset.

Methods

__init__(*, position_array[, ...])

Method generated by attrs for class ValidPosesDataset.

Attributes