plot_img_bbox: Make plots of the image with bounnding box predictions

View source: R/plot_img_bbox.R

plot_img_bboxR Documentation

Make plots of the image with bounnding box predictions

Description

Plots original image with predicted bounding box and (optionally) the predicted category

Usage

plot_img_bbox(
  filename,
  pred_df,
  output_dir,
  data_dir,
  plot_label = TRUE,
  col = "red",
  lty = 1,
  lwd = 2,
  prop_bbox = FALSE,
  w = 408,
  h = 307
)

Arguments

filename

The file containing the image

pred_df

Prediction dataframe that is output from deployment

output_dir

Desired directory to make plots

data_dir

absolute path to images

plot_label

boolean. Do you want the predicted category on the plot?

col

color of the bbox (and label if 'plot_label=TRUE'). See '?plot' for an explanation of 'col', 'lwd', and 'lty'

lty

line type of bbox

lwd

line width of bbox

prop_bbox

boolean. Are the bbox coordinates in proportion instead of exact coordinates? Only 'TRUE' if you are using a different image size

w

The image width (in pixels) for the annotated plot.

h

The image height (in pixels) for the annotated plot. Only used if make_plots=TRUE.


TabakM/CameraTrapDetectoR documentation built on June 11, 2022, 9:37 p.m.