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