getImagePredictionList method
Runs object detection and returns raw results.
Returns all raw detection results without filtering. Useful for custom post-processing or different threshold requirements.
@param imageAsBytes The raw image bytes @param minimumScore Minimum confidence score for detections (0.0-1.0) @param IOUThershold Maximum overlap allowed between detections @param boxesLimit Maximum number of detections to return @return A Future that completes with a list of raw detection results
Implementation
Future<List<ResultObjectDetection?>> getImagePredictionList(
Uint8List imageAsBytes,
{double minimumScore = 0.5,
double IOUThershold = 0.5,
int boxesLimit = 10}) async {
final List<ResultObjectDetection?> prediction = await ModelApi()
.getImagePredictionListObjectDetection(_index, imageAsBytes, null, null,
null, minimumScore, IOUThershold, boxesLimit);
return prediction;
}