| get_bounds | R Documentation |
Get the bounds detected by tem_to_xml() (uses dlib.get_frontal_face_detector()).
get_bounds(xml, crop = FALSE, subset = NULL)
xml |
The file path for the XML file created by |
crop |
Whether to crop the image to the bounds |
subset |
indices of images to subset |
A stimlist with a 4-point template of the top-left, top-right, bottom-right, and bottom-left corners of the bounding box, optionally cropped to this box
xml <- system.file("demo/_images.xml", package = "webmorphR.dlib")
bounds <- get_bounds(xml)
cropped <- get_bounds(xml, crop = TRUE)
## Not run:
# plot images
bounds |>
draw_tem(line.alpha = 1, line.color = "green") |>
c(cropped) |>
plot(nrow = 1)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.