auto_delin: Auto-Delineation

View source: R/auto_delin.R

auto_delinR Documentation

Auto-Delineation

Description

Automatically delineate faces using Face++ (an external service). Since each delineation counts against a daily limit, you need to set up your own Face++ account (see details below).

Usage

auto_delin(stimuli, model = c("fpp106", "fpp83"), replace = FALSE, face = 1)

Arguments

stimuli

list of stimuli

model

Which model (fpp106, fpp83)

replace

logical; whether to replace original templates - if FALSE, only gets templates for images with no template

face

which face to delineate in each image if there is more than 1

Details

To use Face++ auto-delineation, you need to get your own free API key from https://www.faceplusplus.com. After signing up for an account, go to https://console.faceplusplus.com/app/apikey/list and request a free API key. Add the key and secret to your .Renviron file as follows:

FACEPLUSPLUS_KEY="1234567890abcdefghijk"

FACEPLUSPLUS_SECRET="1234567890abcdefghijk"

Value

list of stimuli with templates

See Also

Template functions average_tem(), centroid(), change_lines(), delin(), draw_tem(), features(), get_point(), remove_tem(), require_tems(), same_tems(), squash_tem(), subset_tem(), tem_def(), viz_tem_def()

Examples

## Not run: 
# requires an API key in .Renviron
auto_fpp106 <- demo_stim() |>
  auto_delin(model = "fpp106", replace = TRUE)

## End(Not run)

webmorphR documentation built on June 2, 2022, 5:07 p.m.