ImageSegmenterOptions interface

Options to configure the MediaPipe Image Segmenter Task

Signature:

  export 
  
 declare 
  
 interface 
  
 ImageSegmenterOptions 
  
 extends 
  
 VisionTaskOptions 
  
 

Extends: VisionTaskOptions

Properties

Property Type Description
string | undefined The locale to use for display names specified through the TFLite Model Metadata, if any. Defaults to English.
boolean | undefined Whether to output the category masks. Defaults to false.
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 
 ; 
 
Create a Mobile Website
View Site in Mobile | Classic
Share by: