powered by
Plot bounding boxes on image from md results
plot_box( rows, file_col = "filepath", min_conf = 0, label_col = NULL, show_confidence = FALSE, colors = NULL, detector_labels = NULL, return_img = FALSE )
no return value, produces bounding box in plot panel
row or rows of images in which the bounding box will be plotted
Column name containing file paths
minimum confidence to plot box
Column name containing class to print above the box. If None, no label is printed.
If true, show confidence score above the box.
Named list mapping class labels to BGR color tuples for the bounding boxes.
Named list mapping detector categories to human-readable labels.
If true, return the image array with boxes overlaid, otherwise display it
if (FALSE) { test_image <- classify(classifier_model, test_image, file_col='filepath') plot_box(test_image, file_col='filepath', minconf = 0.5, prediction=TRUE) }
Run the code above in your browser using DataLab