# ImageSegmenterOptions

    class ImageSegmenterOptions: TaskOptions, NSCopying

Options for setting up a `ImageSegmenter`.
- `
  ### [displayNamesLocale](https://developers.google.com/edge/api/mediapipe/swift/vision/Classes/ImageSegmenterOptions.md.txt#/c:objc(cs)MPPImageSegmenterOptions(py)displayNamesLocale)

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

  #### Declaration

  Swift

      var displayNamesLocale: String { get set }

- `
  ### [imageSegmenterLiveStreamDelegate](https://developers.google.com/edge/api/mediapipe/swift/vision/Classes/ImageSegmenterOptions.md.txt#/c:objc(cs)MPPImageSegmenterOptions(py)imageSegmenterLiveStreamDelegate)

  ` An object that confirms to `ImageSegmenterLiveStreamDelegate` protocol. This object must implement `imageSegmenter(_:didFinishSegmentationWithResult:timestampInMilliseconds:error:)` to receive the results of performing asynchronous segmentation on images (i.e, when `runningMode` = `liveStream`).

  #### Declaration

  Swift

      weak var imageSegmenterLiveStreamDelegate: (any ImageSegmenterLiveStreamDelegate)? { get set }

- `
  ### [runningMode](https://developers.google.com/edge/api/mediapipe/swift/vision/Classes/ImageSegmenterOptions.md.txt#/c:objc(cs)MPPImageSegmenterOptions(py)runningMode)

  ` Running mode of the image segmenter task. Defaults to `image`. `ImageSegmenter` can be created with one of the following running modes: 1. `image`: The mode for performing segmentation on single image inputs. 2. `video`: The mode for performing segmentation on the decoded frames of a video. 3. `liveStream`: The mode for performing segmentation on a live stream of input data, such as from the camera.

  #### Declaration

  Swift

      var runningMode: RunningMode { get set }

- `
  ### [shouldOutputCategoryMask](https://developers.google.com/edge/api/mediapipe/swift/vision/Classes/ImageSegmenterOptions.md.txt#/c:objc(cs)MPPImageSegmenterOptions(py)shouldOutputCategoryMask)

  ` Represents whether to output category mask.

  #### Declaration

  Swift

      var shouldOutputCategoryMask: Bool { get set }

- `
  ### [shouldOutputConfidenceMasks](https://developers.google.com/edge/api/mediapipe/swift/vision/Classes/ImageSegmenterOptions.md.txt#/c:objc(cs)MPPImageSegmenterOptions(py)shouldOutputConfidenceMasks)

  ` Represents whether to output confidence masks.

  #### Declaration

  Swift

      var shouldOutputConfidenceMasks: Bool { get set }