DetectedObject constructor
DetectedObject({})
Creates a detected object with the given detection, categories, and image size.
Implementation
DetectedObject({
required Detection detection,
required this.categories,
required this.originalSize,
}) : _detection = detection,
boundingBox = _computeBoundingBox(detection.boundingBox, originalSize);