poseinterface.clips.extract_startlabels#
- poseinterface.clips.extract_startlabels(cliplabels_path, output_path=None)[source]#
Extract only the first frame’s labels from a cliplabels.json file.
Reads a
*_cliplabels.jsonfile and creates a corresponding*_startlabels.jsonfile containing only the labels for the first frame (frame with id=0).- Parameters:
- Returns:
Path to the output
*_startlabels.jsonfile.- Return type:
- Raises:
FileNotFoundError – If the input file does not exist.
ValueError – If the input filename does not end with
_cliplabels.json,output_pathdoes not end with_startlabels.json, or the clip labels do not contain exactly one first-frame image (id: 0).