Interface SegmentImageSource

A set of source input(s) for image segmentation.

interface SegmentImageSource {
    image?: Image;
    prompt?: string;
    scribbleImage?: ScribbleImage;
}

Properties

image?: Image

The image to be segmented.

prompt?: string

A text prompt for guiding the model during image segmentation. Required for prompt mode and semantic mode, disallowed for other modes.

scribbleImage?: ScribbleImage

The brush scribble to guide segmentation. Required for the interactive mode, disallowed for other modes.