drawObjects

fun Canvas.drawObjects(detectedObjects: List<DetectedObject>, paint: Paint, labelPaint: TextPaint, bounds: PreviewImageBounds = bounds())

Draw given detectedObjects on the Canvas using paint for the bounding box and labelPaint for the label.

If the preview image coordinates do not match the Canvas coordinates, bounds of the image preview should be provided.

See also