darwin-py icon indicating copy to clipboard operation
darwin-py copied to clipboard

keypoint data not added when using build_image_annotation

Open martvanrijthoven opened this issue 1 year ago • 1 comments
trafficstars

When using build_image_annotation keypoint data is not added

martvanrijthoven avatar Jul 25 '24 19:07 martvanrijthoven

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.

JBWilkie avatar Feb 23 '25 18:02 JBWilkie