Verify whether face in an input image belongs to a subject in a gallery.

verify(image, subject_id, gallery)

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 for the person in the gallery to be verified.

gallery

A string containing the name of the gallery in which the subject will be verified.

Value

A data frame with the verification annotations for the input image. The likelihood of a match is given in column confidence.

Examples

#> Succesfully initialized authentification credentials.
# enroll padme_image <- 'https://upload.wikimedia.org/wikipedia/en/e/ee/Amidala.png' padme_face <- enroll(image = padme_image, subject_id = 'padme', gallery = 'starwars')
#> Error: API did not return json
# verify amidala_img <- 'https://upload.wikimedia.org/wikipedia/it/5/5e/Padm%C3%A9_Amidala.png' verified <- verify(image = amidala_img, subject_id = 'padme', gallery = 'starwars')
#> Error: API did not return json