ovml_yolo_detect | R Documentation |
Processing of a video file requires that ffmpeg
be installed on your system. ovideo::ov_install_ffmpeg()
can help with this on Windows and Linux.
ovml_yolo_detect( net, image_file, conf = 0.6, nms_conf = 0.4, classes, batch_size = 4, ... )
net |
yolo: as returned by |
image_file |
character: path to one or more image files, or a single video file (mp4, m4v, or mov extension) |
conf |
scalar: confidence level |
nms_conf |
scalar: non-max suppression confidence level |
classes |
character: vector of class names, only detections of these classes will be returned |
batch_size |
integer: the number of images to process as a batch. Increasing |
... |
: currently ignored |
A data.frame with columns "image_number", "image_file", "class", "score", "xmin", "xmax", "ymin", "ymax"
ovml_yolo()
## Not run: dn <- ovml_yolo() img <- ovml_example_image() res <- ovml_yolo_detect(dn, img) ovml_ggplot(img, res) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.