components/background_components/segmenter/segmenter_stub library
Stub Segmenter - Fallback for Unsupported Platforms
This implementation is used on platforms where ML-based segmentation is not available (Web, Windows, macOS, Linux).
It returns the original frame without processing, allowing the app to run without crashes while gracefully degrading functionality.
Note: On Android/iOS, use segmenter_mobile.dart directly with
conditional imports in your app's build configuration.
Classes
- StubSegmenter
- Stub implementation that returns frames unprocessed.
Functions
-
createSegmenter(
) → BackgroundSegmenterBase - Factory function - returns StubSegmenter.