DetectionsPainter constructor
DetectionsPainter({
- required List<
DetectedObject> detections, - required Rect imageRectOnCanvas,
- required Size originalImageSize,
- bool showBoundingBoxes = true,
- bool showLabels = true,
- double boundingBoxThickness = 2.0,
- double labelFontSize = 12.0,
- Color? boundingBoxColor,
- Color labelBackground = const Color(0xCC000000),
- 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,
});