View source: R/plot_img_bbox.R
plot_img_bbox | R Documentation |
Plots original image with predicted bounding box and (optionally) the predicted category
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 )
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
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.