Skip to contents

Re-renders the detection overlay (bounding boxes, optional instance masks, and labels) returned by image_detect_dl(). Any visual parameter not explicitly supplied defaults to the value used during the original call.

Usage

# S3 method for class 'image_detect_dl'
plot(
  x,
  img = NULL,
  col = NULL,
  alpha = NULL,
  border = NULL,
  lwd = NULL,
  cex = NULL,
  bbox = NULL,
  mask = NULL,
  rainbow = NULL,
  badge = NULL,
  badge_pad = NULL,
  show_text = NULL,
  show_conf = NULL,
  show_class = NULL,
  show_id = NULL,
  show_box = NULL,
  show_point = NULL,
  point_size = NULL,
  point_pch = NULL,
  point_col = NULL,
  ...
)

Arguments

x

An object of class image_detect_dl returned by image_detect_dl().

img

Optional Image object to use as background. Defaults to attr(x, "image") when available.

col, alpha, border, lwd, cex, bbox, mask, rainbow, badge, badge_pad, show_text, show_conf, show_class, show_id, show_box, show_point, point_size, point_pch, point_col

Visual parameters overriding the original image_detect_dl() settings.

...

Additional graphical arguments passed to graphics::plot().

Value

Invisibly returns x.