DrawSegmentationStep
is a pipeline step that configures how to draw a segmentation mask, optionally on an image.#788E87
, an RGB
value like - rgb(128,0,255)
or it can be from a set of predefined HTML color names: white
, silver
, gray
, black
, red
, maroon
, yellow
, olive
, lime
, green
, aqua
, teal
, blue
, navy
, fuchsia
, purple
.[1, height, width]
.image
.image
key name is set. This specifies, the opacity, between 0.0
and 1.0
, of the mask to draw on the image. Default value of 0.5
is used if it's not set. Value of 0.0 is fully transparent and 1.0 is fully opaque.ImageToNDArrayConfig
may be used to crop images before passing to the network, when the image aspect ratio does not match the NDArray aspect ratio. This allows the step to determine the subset of the image actually passed to the network that produced the segmentation prediction to be drawn. Refer config
from IMAGE_TO_NDARRAY.