gcv_get_product_search_raw_response: Get raw results from the Vision API Product Search

Description Usage Arguments Value

View source: R/get_product_search_response.R

Description

Given an image, and search parameters, this functions calls the Google Cloud Vision API, and returns an unformatted response (JSON) from the API. If you are looking for a friendlier result, refer to the 'gcv_get_product_search_response()' function

Usage

1
2
3
4
5
6
7
8
gcv_get_product_search_raw_response(
  imagePath,
  projectId,
  locationId,
  productSetId,
  productCategory,
  maxNumResults
)

Arguments

imagePath

character, file path, URLs or Cloud Storage URI of the image

projectId

character, GCP project id

locationId

character, GCP location id

productSetId

character, product set id for Product Search

productCategory

character, roduct category for Product Search

maxNumResults

integer, the maximum number of results (per image) to be returned.

Value

a list with product search results


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