Callback Format

Once the videoannotation task is done, we will send a response to your callback URL. The response.annotations.url field of the callback will be a link to a JSON file containing the annotations.

{
  "response": {
    "annotations": {
        "url": "https://scaleapi-results.s3.amazonaws.com/5e5dc4a0-1d9b-11e8-bce8-41122de76217"
    }
  },
  "task_id": "",
  "task": { ... }
}

The annotation file will contain a list of AnnotationFrame objects, one for each frame of the videoannotation task. The AnnotationFrame objects will be in temporal order; that is, the first AnnotationFrame will correspond to the first frame in the videoannotation task's attachments array, etc. Each AnnotationFrame is a list of Annotation objects - reference the documentation for each geometry (Points, Lines, Boxes, Ellipses, Cuboids, Polygons) for the exact schema.

[
  {
    "annotations": [
      {
        "uuid": "26201bd9-72ab-4b63-ab7d-df4e671161b9",
        "type": "box",
        "label": "small vehicle",
        "top": 144,
        "left": 845,
        "height": 168,
        "width": 72,
        "attributes": {
          "moving": "no"
        }
      },
      {
        "uuid": "4fa43f3a-81cf-492f-8b6e-3b7b2c824d05",
        "type": "box",
        "label": "small vehicle",
        "top": 190,
        "left": 330,
        "height": 76,
        "width": 109,
        "attributes": {
          "moving": "yes"
        }
      }
    ]
  },
  {
    "annotations": [
      {
        "uuid": "26201bd9-72ab-4b63-ab7d-df4e671161b9",
        "type": "box",
        "label": "large vehicle",
        "top": 146,
        "left": 830,
        "height": 154,
        "width": 62,
        "attributes": {
          "moving": "yes"
        }
      },
      {
        "uuid": "4fa43f3a-81cf-492f-8b6e-3b7b2c824d05",
        "type": "box",
        "label": "small vehicle",
        "top": 192,
        "left": 289,
        "height": 90,
        "width": 129
        "attributes": {
          "moving": "no"
        }
      }
    ]
  }
]