getImagePredictionList method

Future<List<ResultObjectDetection?>> getImagePredictionList(
  1. Uint8List imageAsBytes, {
  2. double minimumScore = 0.5,
  3. double IOUThershold = 0.5,
  4. int boxesLimit = 10,
})

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;
}