getImagePredictionFromBytesList method
Runs batch object detection and returns filtered results.
Processes multiple images in a single batch for improved performance. Returns detections that meet the specified confidence thresholds.
@param imageAsBytesList List of raw image bytes @param imageWidth The width to resize images to @param imageHeight The height to resize images to @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 detection results
Implementation
Future<List<ResultObjectDetection?>> getImagePredictionFromBytesList(
List<Uint8List> imageAsBytesList, int imageWidth, int imageHeight,
{double minimumScore = 0.5,
double IOUThershold = 0.5,
int boxesLimit = 10}) async {
List<ResultObjectDetection?> prediction = await ModelApi()
.getImagePredictionListObjectDetection(_index, null, imageAsBytesList,
imageWidth, imageHeight, minimumScore, IOUThershold, boxesLimit);
for (var element in prediction) {
element?.className = labels[element.classIndex];
}
return prediction;
}