ImageSegmenterOptions interface

Options to configure the MediaPipe Image Segmenter Task

Signature:

export declare interface ImageSegmenterOptions extends VisionTaskOptions 

Extends: VisionTaskOptions

Properties

Property Type Description
displayNamesLocale string | undefined The locale to use for display names specified through the TFLite Model Metadata, if any. Defaults to English.
outputCategoryMask boolean | undefined Whether to output the category masks. Defaults to false.
outputConfidenceMasks boolean | undefined Whether to output confidence masks. Defaults to true.

ImageSegmenterOptions.displayNamesLocale

The locale to use for display names specified through the TFLite Model Metadata, if any. Defaults to English.

Signature:

displayNamesLocale?: string | undefined;

ImageSegmenterOptions.outputCategoryMask

Whether to output the category masks. Defaults to false.

Signature:

outputCategoryMask?: boolean | undefined;

ImageSegmenterOptions.outputConfidenceMasks

Whether to output confidence masks. Defaults to true.

Signature:

outputConfidenceMasks?: boolean | undefined;