Base type - Image

There are two fields in the job build for an image-based project:

  1. image_url: URL of the image to be annotated

  2. maker_response: It contains all the annotations made on the job.

Job Build Structure

{
  "image_url": "https://sample-unannotated-url.com",
  "maker_response": {
    "rectangles": {                   
        "data": [....]                
    },
    "polygons": {                
       "data": [....]                
    },
    "landmarks": {                
       "data": [....]                
    }, 
    "lines": {                
       "data": [....]                
    }, 
    "cuboids": {                
       "data": [....]                
    },
}

The maker_response has a field for every annotation type. Every annotation_type has a data field that contains an array of annotations.

Annotations structure

> example rectangle annotation data
"rectangles": {
  "data": [
    {
      "_id": "72c888f6-b365-4f27-ad57-d7841da2de0c",
      "label": "Car",
      "coordinates": [
        {
          "x": 0.12,
          "y": 0.12
        },
        {
          "x": 0.24,
          "y": 0.12
        },
        {
          "x": 0.24,
          "y": 0.24
        },
        {
          "x": 0.12,
          "y": 0.24
        }
      ],
      "attributes": {
        "occlusion": {
          "value": "100%"
        },
        "visibility": {
          "value": "partially_visible"
        }
      },
      "state": "editable"
    }
  ]
}

Each annotation has the following values:

  • id: Unique ID for the annotation

  • label: Class (label) selected for the annotation

  • coordinates: List of (x,y) coordinates for the rectangle in the order: [Top left, top right, bottom right, bottom left]

  • attributes: It contains the name of the attribute and the value selected.

  • state: It defines the state of the annotation in GT create, it can have two values:

    1. editable: Annotator will be able to make any changes to the annotation

    2. non_editable: Annotator will be unable to make any changes to the annotation

Last updated