Skip to content

Commit

Permalink
handling polyg and bbox bounding box anno
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristofferEdlund committed Nov 17, 2023
1 parent 2d9f9d2 commit 20ae224
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion darwin/exporter/formats/darwin.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ def _build_v2_annotation_data(annotation: dt.Annotation) -> Dict[str, Any]:


def _build_bounding_box_data(data: Dict[str, Any]) -> Dict[str, Any]:
data = data["bounding_box"]
if "bounding_box" in data:
data = data["bounding_box"]
return {
"h": data.get("h"),
"w": data.get("w"),
Expand Down

0 comments on commit 20ae224

Please sign in to comment.