extract_response: helper function code to extract the response data.frame

Description Usage Arguments Value

View source: R/get_google_vision_response.R

Description

a utility to extract features from the API response

Usage

1
extract_response(responses, imagePaths, feature)

Arguments

responses

an API response object

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"

Value

a data.table


cloudyr/googleCloudVisionR documentation built on April 2, 2020, 10:56 p.m.