runSegmentationOnFrame method
Future<Uint8List?>
runSegmentationOnFrame({
- required List<
Uint8List> bytesList, - int imageHeight = 1280,
- int imageWidth = 720,
- double imageMean = 0,
- double imageStd = 255.0,
- int rotation = 90,
- List<
int> ? labelColors, - String outputType = "png",
- bool asynch = true,
override
Implementation
@override
Future<Uint8List?> runSegmentationOnFrame({
required List<Uint8List> bytesList,
int imageHeight = 1280,
int imageWidth = 720,
double imageMean = 0,
double imageStd = 255.0,
int rotation= 90,
List<int>? labelColors,
String outputType = "png",
bool asynch = true,
}) async {
return await _channel.invokeMethod('runSegmentationOnFrame', {
"bytesList": bytesList,
"imageHeight": imageHeight,
"imageWidth": imageWidth,
"imageMean": imageMean,
"imageStd": imageStd,
"rotation": rotation,
"labelColors": labelColors ?? TfliteNextPlatform.pascalVOCLabelColors,
"outputType": outputType,
"asynch": asynch,
});
}