Base type - Segmentation

There are two fields in the job build for a segmentation-based project:

  1. image_url : URL of the image to be annotated

  2. maker_response : It contains the annotation data

Job Build Structure

> example segmentation build structure

{
  "image_url": "https://sample-image-url.com",
  "maker_response": {
    "raster": {
      "data": {
        "url": "https://sample-annotated_mask-url.com",
       "legend": {
          "#03f561": "car # 4",
          "#0400e6": "car",
          "#0b0d73": "pedestrian # 1",
          "#19f985": "pedestrian # 5",
          "#2da82d": "pedestrian # 4",
          "#30fbee": "pedestrian # 2",
          "#345fc1": "pedestrian # 3",
          "#3b2ee3": "pedestrian # 8",
          "#4c4f13": "car # 2",
          "#586ee7": "car # 1",
          "#8e44fc": "lane_marking # 1",
          "#9040d2": "lane_marking # 2",
          "#a3cb38": "lane_marking",
          "#a9fd44": "pedestrian # 7",
          "#b37873": "car # 6",
          "#b53471": "cyclist",
          "#c4e538": "road",
          "#c76e2a": "car # 5",
          "#d62366": "pedestrian # 6",
          "#d980fa": "other",
          "#e7a0b4": "car # 3",
          "#ed4c67": "sky",
          "#f79f1f": "sidewalk",
          "#fda7df": "vegetation",
          "#fdff00": "pedestrian"
        }
      }
    }
  }
}

The maker_response has a raster field to define raster annotations. The raster field has adata field that contains the Annotated Mask URL and the legend data for the mask.

legend contains key-value pairs, where:

  1. Key represents the color in the annotated mask.

  2. Value represents the label associated with the color.

Note: If you are creating pre-labeled jobs, the mask URL should be accessible by Playment. To learn more, refer: Secure Attachment Access

Last updated