from_lp_file#
- movement.io.load_poses.from_lp_file(file_path, fps=None)[source]#
Create a
movementposes dataset from a LightningPose file.- Parameters:
file_path (pathlib.Path or str) – Path to the file containing the predicted poses, in .csv format.
fps (float, optional) – The number of frames per second in the video. If None (default), the
timecoordinates will be in frame numbers.
- Returns:
movementdataset containing the pose tracks, confidence scores, and associated metadata.- Return type:
Examples
>>> from movement.io import load_poses >>> ds = load_poses.from_lp_file("path/to/file.csv", fps=30)