API#

io#

annotations_to_poseinterface(input_path, ...)

Export annotations file from a single video to poseinterface format.

frames_to_poseinterface(input_dir, ...)

Copy and rename frame images to match filenames in COCO JSON.

predictions_to_poseinterface(input_path, ...)

Convert a prediction file to poseinterface COCO JSON format.

split_lp_collected_data(input_path, output_dir)

Split a Lightning Pose project-level CollectedData.csv into per-session CSVs.

video_to_poseinterface(input_video, ...)

Reencode and rename a video to poseinterface format.

clips#

extract_clip(video_path, start_frame, duration)

Extract a video clip (and its clip labels if available).

utils#

tree(dir_path, *[, level, ...])

Return a visual tree structure of a directory as a string.