SelfieSegmenter class

A detector that performs segmentation on a given InputImage.

Constructors

SelfieSegmenter({SegmenterMode mode = SegmenterMode.stream, bool enableRawSizeMask = false})
Constructor to create an instance of SelfieSegmenter.

Properties

enableRawSizeMask bool
Asks the segmenter to return the raw size mask which matches the model output size.
final
hashCode int
The hash code for this object.
no setterinherited
id String
Instance id.
final
mode SegmenterMode
The mode for the Segmenter. The default value is SegmenterMode.stream.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

close() Future<void>
Closes the detector and releases its resources.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
processImage(InputImage inputImage) Future<SegmentationMask?>
Processes the given InputImage for segmentation. Returns the segmentation mask in the given image or nil if there was an error.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited