getGoogleVisionResponse: Calling Google's Cloud Vision API

Description Usage Arguments Value Examples

Description

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

Usage

1
2
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

1
2
f <- system.file("exampleImages", "brandlogos.png", package = "RoogleVision")
getGoogleVisionResponse(imagePath = f, feature = "LOGO_DETECTION")

cloudyr/RoogleVision documentation built on May 13, 2019, 8:17 p.m.