Description Usage Arguments Value Examples
View source: R/get_google_vision_response.R
Given a list of images, a feature type and the maximum number of responses, this functions calls the Google Cloud Vision API, and returns the image annotations in a data.table format.
1 | gcv_get_response(imagePaths, feature, maxNumResults)
|
imagePaths |
character, file paths, URLs or Cloud Storage URIs of the images, can be a combination of all three |
feature |
character, one out of: "LABEL_DETECTION", "FACE_DETECTION", "TEXT_DETECTION", "DOCUMENT_TEXT_DETECTION", "LOGO_DETECTION", "LANDMARK_DETECTION", "IMAGE_PROPERTIES", "OBJECT_LOCALIZATION" |
maxNumResults |
integer, the maximum number of results (per image) to be returned. |
a data frame with image annotation results
1 2 3 4 5 6 7 | ## Not run:
imagePath <- system.file(
"extdata", "golden_retriever_puppies.jpg", package = "googleCloudVisionR"
)
gcv_get_response(imagePaths = imagePath, maxNumResults = 7)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.