Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
SPDX-License-Identifier: CC-BY-SA-4.0

crowd-semantic-segmentation

A widget for segmenting an image and assigning a label to each image segment.

The following attributes are supported by this element.

The text to display above the image. This is typically a question or simple instruction for the worker.

A JSON formatted array of strings, each of which is a label that a worker can assign to a segment of the image.

The name of this widget. It is used as a key for the widget’s input in the form output.

The URL of the image that is to be segmented.

This element has the following parent and child elements. + Parent elements: crowd-form + Child elements: full-instructions, short-instructions

The following regions are supported by this element.

General instructions about how to do image segmentation.

Important task-specific instructions that are displayed in a prominent place.

The following output is supported by this element.

A JSON Object containing a Base64 encoded PNG of the labels.

A JSON Object containing objects with named with the segmentation labels. + color – The hexadecimal value of the label’s RGB color in the labeledImage PNG.

A JSON object that specifies the dimensions of the image that is being annotated by the worker. This object contains the following properties. + height – The height, in pixels, of the image. + width – The width, in pixels, of the image.

Example : Sample Element Outputs
The following is a sample of output from this element.

[
  {
    "annotatedResult": {
      "inputImageProperties": {
        "height": 533,
        "width": 800
      },
      "labelMappings": {
        "<Label 2>": {
          "color": "#ff7f0e"
        },
        "<label 3>": {
          "color": "#2ca02c"
        },
        "<label 1>": {
          "color": "#1f77b4"
        }
      },
      "labeledImage": {
        "pngImageData": "<Base-64 Encoded Data>"
      }
    }
  }
]

For more information, see the following. + Amazon SageMaker Ground Truth + HTML Elements Reference