We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9ebb928 commit 85b7a24Copy full SHA for 85b7a24
examples/notebook_annotations_to_coco.py
poseinterface/io.py
@@ -54,6 +54,15 @@ def annotations_to_coco(
54
The format of the input annotations file is automatically inferred based
55
on its extension. See :func:`sleap_io.io.main.load_file` for supported
56
formats.
57
+
58
+ Example
59
+ -------
60
+ >>> from pathlib import Path
61
+ >>> from poseinterface.io import annotations_to_coco
62
+ >>> coco_json_path = annotations_to_coco(
63
+ ... input_path=Path("path/to/annotations.slp"),
64
+ ... output_json_path=Path("path/to/annotations_coco.json"),
65
+ ... )
66
"""
67
labels = sio.load_file(input_path)
68
# Check if labels object is empty
0 commit comments