panlabel 0.7.0

The universal annotation converter
Documentation
[
  {
    "task_id": "task-img1",
    "type": "imageannotation",
    "params": {
      "attachment_type": "image",
      "attachment": "https://example.com/images/img1.jpg",
      "geometries": {"box": {"objects_to_annotate": ["car"]}},
      "metadata": {"width": 100, "height": 80}
    },
    "response": {
      "annotations": [
        {"type": "box", "label": "car", "left": 10, "top": 20, "width": 30, "height": 40, "uuid": "box-1", "attributes": {"occluded": "no"}},
        {"type": "polygon", "label": "person", "vertices": [{"x": 5, "y": 4}, {"x": 30, "y": 10}, {"x": 12, "y": 40}], "uuid": "poly-1"}
      ]
    }
  },
  {
    "task_id": "task-img2",
    "type": "imageannotation",
    "params": {
      "attachment": "file:img2.jpg",
      "metadata": {"width": 120, "height": 90}
    },
    "response": {
      "annotations": [
        {"type": "box", "label": "truck", "left": 50, "top": 10, "width": 20, "height": 30, "rotation": 0.5, "vertices": [{"x": 50, "y": 10}, {"x": 75, "y": 15}, {"x": 70, "y": 45}, {"x": 45, "y": 40}], "uuid": "rot-1"}
      ]
    }
  }
]