yoloOnImage abstract method
yoloOnImage accept a Uint8List as input and return a List<Map<String, dynamic>>.
where map is mapped as follows:
"box": [x1:left, y1:top, x2:right, y2:bottom, class_confidence]
"tag": String: detected class
}```
args: [bytesList] - image bytes
, [imageHeight] - image height
, [imageWidth] - image width
, [iouThreshold] - intersection over union threshold, default 0.4
, [confThreshold] - model confidence threshold, default 0.5, only for [yolov5]
, [classThreshold] - class confidence threshold, default 0.5
Implementation
Future<List<Map<String, dynamic>>> yoloOnImage({
required Uint8List bytesList,
required int imageHeight,
required int imageWidth,
double? iouThreshold,
double? confThreshold,
double? classThreshold,
});