enroll: enroll faces

Description Usage Arguments Value Examples

Description

Enroll face in an input image to a gallery and assign a subject id.

Usage

1
enroll(image, subject_id, gallery, min_head_scale = 0.015)

Arguments

image

An image of file type 'JPG', 'PNG', or 'BMP'. Can either be an url string or a local image processed with prep_image.

subject_id

A string containing the id to assign for the person in the enrolled image.

gallery

A string containing the name of the gallery in which the image will be enrolled.

min_head_scale

Set the ratio of the smallest face to look for in the input image. Accepts a value between .015 (1:64 scale) and .5 (1:2 scale).

Value

A data frame with annotations for the enrolled image.

Examples

1
2
3
4
facerec_init()

finn_image <- 'https://upload.wikimedia.org/wikipedia/en/2/2a/Finn-Force_Awakens_%282015%29.png'
finn_enroll <- enroll(image = finn_image, subject_id = 'finn', gallery = 'starwars')

facerec documentation built on May 2, 2019, 3:45 p.m.