@google-cloud/vision

The @google-cloud/vision package has the following named exports:

Source:
Examples

Install the client library with npm:

npm install --save @google-cloud/vision

Import the client library:

const vision = require('@google-cloud/vision');

Create a client that uses Application Default Credentials (ADC):

const client = new vision.ImageAnnotatorClient();

Create a client with explicit credentials:

const client = new vision.ImageAnnotatorClient({
  projectId: 'your-project-id',
  keyFilename: '/path/to/keyfile.json',
});

Members

(static) v1 :object

Properties:
Name Type Description
ImageAnnotatorClient constructor

Reference to v1.ImageAnnotatorClient

Source:

(static) v1p1beta1 :object

Properties:
Name Type Description
ImageAnnotatorClient constructor

Reference to v1p1beta1.ImageAnnotatorClient

Source:

(static) v1p2beta1 :object

Properties:
Name Type Description
ImageAnnotatorClient constructor

Reference to v1p2beta1.ImageAnnotatorClient

Source:

(static) v1p3beta1 :object

Properties:
Name Type Description
ImageAnnotatorClient constructor

Reference to v1p3beta1.ImageAnnotatorClient

Source:

(static) v1p4beta1 :object

Properties:
Name Type Description
ImageAnnotatorClient constructor

Reference to v1p4beta1.ImageAnnotatorClient

Source: