mp.tasks.vision.InteractiveSegmenter

A task to perform interactive segmentation on images.

Methods

close

View source

Closes the InteractiveSegmenter.

create_from_options

View source

Creates the InteractiveSegmenter object from options.

Args
options Options for the interactive segmenter task.

Returns
InteractiveSegmenter object.

segment

View source

Performs segmentation on the previously set image.

set_image

View source

Sets the image to be segmented.

__enter__

View source

Returns self upon entering the runtime context.

__exit__

View source

Shuts down the MediaPipe task instance on exit of the context manager.