Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

keypoint data not added when using build_image_annotation #891

Closed
martvanrijthoven opened this issue Jul 25, 2024 · 2 comments
Closed

keypoint data not added when using build_image_annotation #891

martvanrijthoven opened this issue Jul 25, 2024 · 2 comments

Comments

@martvanrijthoven
Copy link

When using build_image_annotation keypoint data is not added

Copy link

linear bot commented Jul 25, 2024

@JBWilkie
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants