Learn R Programming

RoogleVision (version 0.0.1.1)

getGoogleVisionResponse: Calling Google's Cloud Vision API

Description

input an image, provide the feature type and maxNumber of responses

Usage

getGoogleVisionResponse(imagePath, feature = "LABEL_DETECTION",
  numResults = 5)

Arguments

imagePath

path or url to the image

feature

one out of: FACE_DETECTION, LANDMARK_DETECTION, LOGO_DETECTION, LABEL_DETECTION, TEXT_DETECTION

numResults

the number of results to return.

Value

a data frame with results

Examples

Run this code
# NOT RUN {
f <- system.file("exampleImages", "brandlogos.png", package = "RoogleVision")
getGoogleVisionResponse(imagePath = f, feature = "LOGO_DETECTION")
# }

Run the code above in your browser using DataLab