processFile abstract method
Future<SegmentationResult>
processFile(
- String filePath,
- Uint8List frameData,
- SegmenterInputMetadata metadata
Process an image file and return segmentation result.
This is more reliable than processFrame as ML Kit can decode the image directly from the file path.
Parameters:
filePath: Path to image file (JPEG, PNG, etc.)frameData: Original RGBA frame data for compositingmetadata: Image dimensions for mask scaling
Implementation
Future<SegmentationResult> processFile(
String filePath,
Uint8List frameData,
SegmenterInputMetadata metadata,
);