yoloOnFrame abstract method

Future<List<Map<String, dynamic>>> yoloOnFrame({
  1. required List<Uint8List> bytesList,
  2. required int imageHeight,
  3. required int imageWidth,
  4. double? iouThreshold,
  5. double? confThreshold,
  6. double? classThreshold,
})

yoloOnFrame accept a byte List as input and return a List<Map<String, dynamic>>.

where map is mapped as follow:

   "box": [x1:left, y1:top, x2:right, y2:bottom, class_confidence]
   "tag": String: detected class
}```

args: [bytesList] - image as byte list
, [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>>> yoloOnFrame({
  required List<Uint8List> bytesList,
  required int imageHeight,
  required int imageWidth,
  double? iouThreshold,
  double? confThreshold,
  double? classThreshold,
});