runModelOnFrame static method
Implementation
static Future<List?> runModelOnFrame(
{required List<Uint8List> bytesList,
int imageHeight = 1280,
int imageWidth = 720,
double imageMean = 127.5,
double imageStd = 127.5,
int rotation = 90, // Android only
int numResults = 5,
double threshold = 0.1,
bool asynch = true}) async {
return await _channel.invokeMethod(
'runModelOnFrame',
{
"bytesList": bytesList,
"imageHeight": imageHeight,
"imageWidth": imageWidth,
"imageMean": imageMean,
"imageStd": imageStd,
"rotation": rotation,
"numResults": numResults,
"threshold": threshold,
"asynch": asynch,
},
);
}