darwin-py
darwin-py copied to clipboard
keypoint data not added when using build_image_annotation
Hi @martvanrijthoven - Apologies for the delay. The build_image_annotation function is used as part of V7's internal infrastructure. The best way to parse local Darwin JSON annotation files is to use the parse_darwin_json function:
from pathlib import Path
from darwin.utils.utils import parse_darwin_json
parsed_local_file = parse_darwin_json(Path("path/to/local/file.json"))
This function guarantees that all supported annotation types (including keypoints) are returned. I will ensure this is more well documented.