nicetoolbox.connectors.napari.parser¶
Parse napari body-joint annotations into Toolbox body_joints NPZ.
The napari (DeepLabCut-style) annotation file uses a 4-level column index (scorer, individuals, bodyparts, coords) and a 3-level row index (root, camera, image_filename).
Output shape: 2d (subjects, cameras, frames, joints, 3) — x/y/confidence. Missing frames within the kept window are written as NaN.
Functions
Load a napari CSV or HDF5 annotation file as a MultiIndex DataFrame. |
|
Convert one napari annotation file to a Toolbox body_joints NPZ. |
- nicetoolbox.connectors.napari.parser.load_napari_dataframe(input_path: Path) DataFrame[source]¶
Load a napari CSV or HDF5 annotation file as a MultiIndex DataFrame.
- nicetoolbox.connectors.napari.parser.napari_to_body_joints_npz(sequence: NapariSequenceConfig, cfg: NapariImportBodyJointsConfig) None[source]¶
Convert one napari annotation file to a Toolbox body_joints NPZ.