Recognize faces in an image and return the most likely matches from a gallery.

recognize(image, gallery, min_head_scale = 0.015, threshold = 0.6,
  max_num_results = 10, show_candidate_images = TRUE)



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


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


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


Likelihood (between 0 and 1) used to determine a valid facial match. Defaults to 0.6.


The maximum number of potential matches that are returned. Defaults to 10.


Whether to return temporary URLs for each potential match. Defaults to TRUE.


A dataframe with the potential matches for the input image. The likelihood of matches is given in column confidence.


#> Succesfully initialized authentification credentials.
# enroll finn_image <- '' padme_image <- '' finn_face <- enroll(image = finn_image, subject_id = 'finn', gallery = 'starwars')
#> Error: API did not return json
padme_face <- enroll(image = padme_image, subject_id = 'padme', gallery = 'starwars')
#> Error: API did not return json
# recognize finn_2 <- '' finn_rec <- recognize(image = finn_2, gallery = 'starwars')
#> Error: API did not return json