Description Usage Arguments Value Examples
Verify whether face in an input image belongs to a subject in a gallery.
1 |
image |
An image of file type 'JPG', 'PNG', or 'BMP'.
Can either be an url string or a local image processed with |
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. |
A data frame with the verification annotations for the input image. The likelihood of a match is given in column confidence
.
1 2 3 4 5 6 7 8 9 | facerec_init()
# enroll
padme_image <- 'https://upload.wikimedia.org/wikipedia/en/e/ee/Amidala.png'
padme_face <- enroll(image = padme_image, subject_id = 'padme', gallery = 'starwars')
# 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')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.