The running mode of the task. Default to the image mode. Image
segmenter task has three running modes: 1) The image mode for segmenting
objects on single image inputs. 2) The video mode for segmenting objects
on the decoded frames of a video. 3) The live stream mode for segmenting
objects on a live stream of input data, such as from camera.
output_confidence_masks
Whether to output confidence masks.
output_category_mask
Whether to output category mask.
result_callback
The user-defined result callback for processing live stream
data. The result callback should only be specified when the running mode
is set to the live stream mode.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-05-01 UTC."],[],[],null,["# mp.tasks.vision.ImageSegmenterOptions\n\n\u003cbr /\u003e\n\n|------------------------------------------------------------------------------------------------------------------------------------|\n| [View source on GitHub](https://github.com/google/mediapipe/blob/master/mediapipe/tasks/python/vision/image_segmenter.py#L78-L115) |\n\nOptions for the image segmenter task. \n\n mp.tasks.vision.ImageSegmenterOptions(\n base_options: ../../../mp/tasks/BaseOptions,\n running_mode: ../../../mp/tasks/vision/RunningMode = ../../../mp/tasks/vision/FaceDetectorOptions#running_mode,\n output_confidence_masks: bool = True,\n output_category_mask: bool = False,\n result_callback: Optional[Callable[[ImageSegmenterResult, image_module.Image, int], None]] = None\n )\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Attributes ---------- ||\n|---------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `base_options` | Base options for the image segmenter task. |\n| `running_mode` | The running mode of the task. Default to the image mode. Image segmenter task has three running modes: 1) The image mode for segmenting objects on single image inputs. 2) The video mode for segmenting objects on the decoded frames of a video. 3) The live stream mode for segmenting objects on a live stream of input data, such as from camera. |\n| `output_confidence_masks` | Whether to output confidence masks. |\n| `output_category_mask` | Whether to output category mask. |\n| `result_callback` | The user-defined result callback for processing live stream data. The result callback should only be specified when the running mode is set to the live stream mode. |\n\n\u003cbr /\u003e\n\nMethods\n-------\n\n### `__eq__`\n\n __eq__(\n other\n )\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Class Variables --------------- ||\n|-------------------------|------------------------------------------|\n| output_category_mask | `False` |\n| output_confidence_masks | `True` |\n| result_callback | `None` |\n| running_mode | `\u003cVisionTaskRunningMode.IMAGE: 'IMAGE'\u003e` |\n\n\u003cbr /\u003e"]]