detectObjectOnFrame static method
Future<List?>
detectObjectOnFrame({
- required List<
Uint8List> bytesList, - String model = "SSDMobileNet",
- int imageHeight = 1280,
- int imageWidth = 720,
- double imageMean = 127.5,
- double imageStd = 127.5,
- double threshold = 0.1,
- int numResultsPerClass = 5,
- int rotation = 90,
- List anchors = anchors,
- int blockSize = 32,
- int numBoxesPerBlock = 5,
- bool asynch = true,
Implementation
static Future<List?> detectObjectOnFrame({
required List<Uint8List> bytesList,
String model = "SSDMobileNet",
int imageHeight = 1280,
int imageWidth = 720,
double imageMean = 127.5,
double imageStd = 127.5,
double threshold = 0.1,
int numResultsPerClass = 5,
int rotation: 90, // Android only
// Used in YOLO only
List anchors = anchors,
int blockSize = 32,
int numBoxesPerBlock = 5,
bool asynch = true,
}) async {
return await _channel.invokeMethod(
'detectObjectOnFrame',
{
"bytesList": bytesList,
"model": model,
"imageHeight": imageHeight,
"imageWidth": imageWidth,
"imageMean": imageMean,
"imageStd": imageStd,
"rotation": rotation,
"threshold": threshold,
"numResultsPerClass": numResultsPerClass,
"anchors": anchors,
"blockSize": blockSize,
"numBoxesPerBlock": numBoxesPerBlock,
"asynch": asynch,
},
);
}