Interface ISegmentationProvider

Contract implemented by every segmentation backend.

interface ISegmentationProvider {
    providerId: string;
    isInitialized: boolean;
    defaultModelId?: string;
    initialize(config): Promise<void>;
    segment(request): Promise<SegmentationResult>;
    supportedModes(): readonly SegmentationMode[];
    shutdown?(): Promise<void>;
}

Implemented by

Methods

Properties

providerId: string
isInitialized: boolean
defaultModelId?: string