license import { BaseTaskLibrary } from './common' ; /** Different output types. */ export declare enum OutputType { CATEGORY_MASK = 1.0 , CONFIDENCE_MASK = 2.0 , UNSPECIFIED = 0.0 } /** ImageSegmenterOptions proto instance. */ export declare interface ImageSegmenterOptions { getOutputType ( ) : OutputType ; setOutputType ( value ) : ImageSegmenterOptions ; hasOutputType ( ) : boolean ; getNumThreads ( ) : number ; setNumThreads ( value ) : ImageSegmenterOptions ; hasNumThreads ( ) : boolean ; } /** SegmentationResult proto instance.  */ export declare interface SegmentationResult { getSegmentationList ( ) : Segmentation [ ] ; } /** Segmentation proto instance.  */ export declare interface Segmentation { getHeight ( ) : number ; getWidth ( ) : number ; getCategoryMask_asU8 ( ) : Uint8Array ; getColoredLabelsList ( ) : ColoredLabel [ ] ; } /** ColoredLabel proto instance.  */ export declare interface ColoredLabel { getR ( ) : number ; getG ( ) : number ; getB ( ) : number ; getClassName ( ) : string ; getDisplayName ( ) : string ; } /** ImageSegmenter class type. */ export declare interface ImageSegmenterClass { param model param options create ( model , options ? ) : Promise < ImageSegmenter > ; } export declare class ImageSegmenter extends BaseTaskLibrary { /** Performs segmentation on the given image-like element. */ segment ( input ) ; }