Skip to contents

Overlays bounding box(es) over images and saves this as a new image.

Usage

img_draw_bbox(
  image,
  bbox,
  format = "xywh",
  file = NULL,
  overwrite = FALSE,
  ...
)

Arguments

image

character or magick-image. The image to extract text from.

bbox

character vector. Bounding box values.

format

character. Format of provided bounding box. See bbox_convert().

file

character or NULL. File path to the output image.

overwrite

logical. If overwriting files is allowed.

...

additional arguments passed to graphics::rect().

Value

a magick image.