dlib_auto_delin: dlib Auto-Delineation

View source: R/dlib_auto_delin.R

dlib_auto_delinR Documentation

dlib Auto-Delineation

Description

Automatically delineate faces using dlib shape predictor models.

Usage

dlib_auto_delin(
  stimuli,
  model = c("dlib7", "dlib70"),
  replace = FALSE,
  model_path = NULL
)

Arguments

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)

Value

stimlist with templates

Examples

## 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)

debruine/webmorphR.dlib documentation built on Sept. 26, 2022, 10:08 a.m.