Back
other

Cloud Vision API

by Google Cloud Documentation docs.cloud.google.com 696 words
View original

Integrates Google Vision features, including image labeling, face, logo, and landmark detection, optical character recognition (OCR), and detection of explicit content, into applications.

Service: vision.googleapis.com

To call this service, we recommend that you use the Google-provided client libraries. If your application needs to use your own libraries to call this service, use the following information when you make the API requests.

Discovery document

A Discovery Document is a machine-readable specification for describing and consuming REST APIs. It is used to build client libraries, IDE plugins, and other tools that interact with Google APIs. One service may provide multiple discovery documents. This service provides the following discovery document:

Service endpoint

A service endpoint is a base URL that specifies the network address of an API service. One service might have multiple service endpoints. This service has the following service endpoint and all URIs below are relative to this service endpoint:

REST Resource: v1.files

Methods
annotatePOST /v1/files:annotate
Service that performs image detection and annotation for a batch of files.
asyncBatchAnnotatePOST /v1/files:asyncBatchAnnotate
Run asynchronous image detection and annotation for a list of generic files, such as PDF files, which may contain multiple pages and multiple images per page.

REST Resource: v1.images

Methods
annotatePOST /v1/images:annotate
Run image detection and annotation for a batch of images.
asyncBatchAnnotatePOST /v1/images:asyncBatchAnnotate
Run asynchronous image detection and annotation for a list of images.

REST Resource: v1.locations.operations

Methods
getGET /v1/{name=locations/*/operations/*}
Gets the latest state of a long-running operation.

REST Resource: v1.operations

Methods
cancelPOST /v1/{name=operations/**}:cancel
Starts asynchronous cancellation on a long-running operation.
deleteDELETE /v1/{name=operations/**}
Deletes a long-running operation.
getGET /v1/{name=operations/*}
Gets the latest state of a long-running operation.
listGET /v1/{name}
Lists operations that match the specified filter in the request.

REST Resource: v1.projects.files

Methods
annotatePOST /v1/{parent=projects/*}/files:annotate
Service that performs image detection and annotation for a batch of files.
asyncBatchAnnotatePOST /v1/{parent=projects/*}/files:asyncBatchAnnotate
Run asynchronous image detection and annotation for a list of generic files, such as PDF files, which may contain multiple pages and multiple images per page.

REST Resource: v1.projects.images

Methods
annotatePOST /v1/{parent=projects/*}/images:annotate
Run image detection and annotation for a batch of images.
asyncBatchAnnotatePOST /v1/{parent=projects/*}/images:asyncBatchAnnotate
Run asynchronous image detection and annotation for a list of images.

REST Resource: v1.projects.locations.files

Methods
annotatePOST /v1/{parent=projects/*/locations/*}/files:annotate
Service that performs image detection and annotation for a batch of files.
asyncBatchAnnotatePOST /v1/{parent=projects/*/locations/*}/files:asyncBatchAnnotate
Run asynchronous image detection and annotation for a list of generic files, such as PDF files, which may contain multiple pages and multiple images per page.

REST Resource: v1.projects.locations.images

Methods
annotatePOST /v1/{parent=projects/*/locations/*}/images:annotate
Run image detection and annotation for a batch of images.
asyncBatchAnnotatePOST /v1/{parent=projects/*/locations/*}/images:asyncBatchAnnotate
Run asynchronous image detection and annotation for a list of images.

REST Resource: v1.projects.locations.operations

Methods
getGET /v1/{name=projects/*/locations/*/operations/*}
Gets the latest state of a long-running operation.

REST Resource: v1.projects.locations.productSets

Methods
addProductPOST /v1/{name=projects/*/locations/*/productSets/*}:addProduct
Adds a Product to the specified ProductSet.
createPOST /v1/{parent=projects/*/locations/*}/productSets
Creates and returns a new ProductSet resource.
deleteDELETE /v1/{name=projects/*/locations/*/productSets/*}
Permanently deletes a ProductSet.
getGET /v1/{name=projects/*/locations/*/productSets/*}
Gets information associated with a ProductSet.
importPOST /v1/{parent=projects/*/locations/*}/productSets:import
Asynchronous API that imports a list of reference images to specified product sets based on a list of image information.
listGET /v1/{parent=projects/*/locations/*}/productSets
Lists ProductSets in an unspecified order.
patchPATCH /v1/{productSet.name=projects/*/locations/*/productSets/*}
Makes changes to a ProductSet resource.
removeProductPOST /v1/{name=projects/*/locations/*/productSets/*}:removeProduct
Removes a Product from the specified ProductSet.

REST Resource: v1.projects.locations.productSets.products

Methods
listGET /v1/{name=projects/*/locations/*/productSets/*}/products
Lists the Products in a ProductSet, in an unspecified order.

REST Resource: v1.projects.locations.products

Methods
createPOST /v1/{parent=projects/*/locations/*}/products
Creates and returns a new product resource.
deleteDELETE /v1/{name=projects/*/locations/*/products/*}
Permanently deletes a product and its reference images.
getGET /v1/{name=projects/*/locations/*/products/*}
Gets information associated with a Product.
listGET /v1/{parent=projects/*/locations/*}/products
Lists products in an unspecified order.
patchPATCH /v1/{product.name=projects/*/locations/*/products/*}
Makes changes to a Product resource.
purgePOST /v1/{parent=projects/*/locations/*}/products:purge
Asynchronous API to delete all Products in a ProductSet or all Products that are in no ProductSet.

REST Resource: v1.projects.locations.products.referenceImages

Methods
createPOST /v1/{parent=projects/*/locations/*/products/*}/referenceImages
Creates and returns a new ReferenceImage resource.
deleteDELETE /v1/{name=projects/*/locations/*/products/*/referenceImages/*}
Permanently deletes a reference image.
getGET /v1/{name=projects/*/locations/*/products/*/referenceImages/*}
Gets information associated with a ReferenceImage.
listGET /v1/{parent=projects/*/locations/*/products/*}/referenceImages
Lists reference images.

REST Resource: v1.projects.operations

Methods
getGET /v1/{name=projects/*/operations/*}
Gets the latest state of a long-running operation.