plot_boxes: Generates raster images with bounding boxes.

Description Usage Arguments Value

View source: R/plot_functions.R

Description

Generates raster images with bounding boxes.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
plot_boxes(
  images_paths,
  boxes,
  labels,
  correct_hw = TRUE,
  target_size = NULL,
  grayscale = FALSE,
  save_dir = NULL,
  plot_images = TRUE
)

Arguments

images_paths

Image filepaths.

boxes

List of 'data.frames' with bounding boxes corresponding to the images.

labels

Character vector containing class labels. For example coco_labels.

correct_hw

Logical. Should height/width rescaling of bounding boxes be applied.

target_size

Image target size.

grayscale

Should images be plotted in grayscale.

save_dir

Directory in which to save generated images.

plot_images

Should images be plotted.

Value

Raster images with bounding boxes.


maju116/platypus documentation built on Oct. 18, 2020, 9:40 a.m.