StubSegmenter class

Stub implementation that returns frames unprocessed.

Used as fallback when:

  • Platform doesn't support ML Kit (desktop, web)
  • ML Kit package not installed
  • Segmentation explicitly disabled
Implemented types

Constructors

StubSegmenter()

Properties

hashCode int
The hash code for this object.
no setterinherited
isReady bool
Whether the segmenter is initialized and ready.
no setteroverride
isSupported bool
Whether this platform actually supports segmentation.
no setteroverride
platformName String
Platform-specific identifier (for debugging/logging).
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

dispose() Future<void>
Release all resources.
override
initialize([SegmenterConfig config = const SegmenterConfig()]) Future<void>
Initialize the segmenter with optional configuration.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
processFile(String filePath, Uint8List frameData, SegmenterInputMetadata metadata) Future<SegmentationResult>
Process an image file and return segmentation result.
override
processFrame(Uint8List frameData, SegmenterInputMetadata metadata) Future<SegmentationResult>
Process a single frame and return segmentation result.
override
toString() String
A string representation of this object.
inherited

Operators

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