prep_image(img_file)
img_file | Path to an image of file type 'JPG', 'PNG', or 'BMP'. |
---|
The prepared image object.
#># download example image finn_image <- 'https://upload.wikimedia.org/wikipedia/en/2/2a/Finn-Force_Awakens_%282015%29.png' temp_img_path <- tempfile(fileext = '.png') download.file(finn_image, temp_img_path, mode = 'wb', quiet = TRUE) # prepare image finn_local <- prep_image(temp_img_path) # use prepared image faces <- detect(image = finn_local)#> Error: API did not return json