ImageSegmenterOptions
class ImageSegmenterOptions : TaskOptions, NSCopyingOptions for setting up a ImageSegmenter.
- 
                  
                  Running mode of the image segmenter task. Defaults to image.ImageSegmentercan be created with one of the following running modes:- image: The mode for performing segmentation on single image inputs.
- video: The mode for performing segmentation on the decoded frames of a video.
- liveStream: The mode for performing segmentation on a live stream of input data, such as from the camera.
 DeclarationSwift var runningMode: RunningMode { get set }
- 
                  
                  An object that confirms to ImageSegmenterLiveStreamDelegateprotocol. This object must implementimageSegmenter(_:didFinishSegmentationWithResult:timestampInMilliseconds:error:)to receive the results of performing asynchronous segmentation on images (i.e, whenrunningMode=liveStream).DeclarationSwift weak var imageSegmenterLiveStreamDelegate: ImageSegmenterLiveStreamDelegate? { get set }
- 
                  
                  The locale to use for display names specified through the TFLite Model Metadata, if any. Defaults to English. DeclarationSwift var displayNamesLocale: String { get set }
- 
                  
                  Represents whether to output confidence masks. DeclarationSwift var shouldOutputConfidenceMasks: Bool { get set }
- 
                  
                  Represents whether to output category mask. DeclarationSwift var shouldOutputCategoryMask: Bool { get set }