testSerializeMask function

  1. @visibleForTesting
Map<String, dynamic> testSerializeMask(
  1. SegmentationMask mask,
  2. IsolateOutputFormat format,
  3. 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);