View source: R/dlib_auto_delin.R
| dlib_auto_delin | R Documentation |
Automatically delineate faces using dlib shape predictor models.
dlib_auto_delin(
stimuli,
model = c("dlib7", "dlib70"),
replace = FALSE,
model_path = NULL
)
stimuli |
list of class stimlist |
model |
Which of the built-in models (dlib7, dlib70) |
replace |
if FALSE, only gets templates for images with no template |
model_path |
path to a custom dlib .dat landmark file to use (model is ignored if set) |
stimlist with templates
## Not run:
auto_dlib7 <- demo_stim() |>
dlib_auto_delin(replace = TRUE) # replace existing templates
auto_dlib70 <- demo_stim() |>
dlib_auto_delin(model = "dlib70", replace = TRUE)
c(auto_dlib7, auto_dlib70) |>
draw_tem() |>
plot(nrow = 1)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.