DetectionsPainter constructor

DetectionsPainter({
  1. required List<DetectedObject> detections,
  2. required Rect imageRectOnCanvas,
  3. required Size originalImageSize,
  4. bool showBoundingBoxes = true,
  5. bool showLabels = true,
  6. double boundingBoxThickness = 2.0,
  7. double labelFontSize = 12.0,
  8. Color? boundingBoxColor,
  9. Color labelBackground = const Color(0xCC000000),
  10. Color labelTextColor = Colors.white,
})

Implementation

DetectionsPainter({
  required this.detections,
  required this.imageRectOnCanvas,
  required this.originalImageSize,
  this.showBoundingBoxes = true,
  this.showLabels = true,
  this.boundingBoxThickness = 2.0,
  this.labelFontSize = 12.0,
  this.boundingBoxColor,
  this.labelBackground = const Color(0xCC000000),
  this.labelTextColor = Colors.white,
});