Detect objects in image using a YOLO network

ovml_yolo_detect(net, image_file, conf = 0.6, nms_conf = 0.4)

Arguments

net

yolo: as returned by ovml_yolo()

image_file

character: path to one or more image files

conf

scalar: confidence level

nms_conf

scalar: non-max suppression confidence level

Value

A data.frame with columns "image_number", "class", "score", "xmin", "xmax", "ymin", "ymax"

See also

Examples

if (FALSE) {
  dn <- ovml_yolo()
  img <- ovml_example_image()
  res <- ovml_yolo_detect(dn, img)
  ovml_ggplot(img, res)
}