testSerializeMask function
Map<String, dynamic>
testSerializeMask(
- SegmentationMask mask,
- IsolateOutputFormat format,
- double binaryThreshold
Test-only: exposes the private mask-serialization logic for unit tests.
Implementation
@visibleForTesting
Map<String, dynamic> testSerializeMask(
SegmentationMask mask,
IsolateOutputFormat format,
double binaryThreshold,
) => FaceDetector._serializeMask(mask, format, binaryThreshold);