getImagePredictionListFromBytesList method
Runs batch object detection and returns raw results.
Processes multiple images and returns all raw detection results. Useful for custom filtering or when batch processing is needed.
@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 raw detection results
Implementation
Future<List<ResultObjectDetection?>> getImagePredictionListFromBytesList(
List<Uint8List> imageAsBytesList, int imageWidth, int imageHeight,
{double minimumScore = 0.5,
double IOUThershold = 0.5,
int boxesLimit = 10}) async {
final List<ResultObjectDetection?> prediction = await ModelApi()
.getImagePredictionListObjectDetection(_index, null, imageAsBytesList,
imageWidth, imageHeight, minimumScore, IOUThershold, boxesLimit);
return prediction;
}