create_boxes_ggplot: Generates raster image with bounding boxes.

Description Usage Arguments Value

View source: R/plot_functions.R

Description

Generates raster image with bounding boxes.

Usage

1
2
3
4
5
6
7
8
create_boxes_ggplot(
  image_path,
  boxes,
  labels,
  correct_hw,
  target_size,
  grayscale
)

Arguments

image_path

Image filepath.

boxes

'data.frame' with bounding boxes corresponding to the image.

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.

Value

Raster image with bounding boxes.


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