Skip to content

Latest commit

 

History

History
 
 

README.md

Google Cloud Platform logo

Open in Cloud Shell

Table of Contents

Before you begin

Before running the samples, make sure you've followed the steps outlined in Using the client library.

cd samples

npm install

cd ..

Samples

Async-batch-annotate-images

View the source code.

Open in Cloud Shell

Usage:

node samples/async-batch-annotate-images.js


Batch-annotate-files-gcs

View the source code.

Open in Cloud Shell

Usage:

node samples/batch-annotate-files-gcs.js


Batch-annotate-files

View the source code.

Open in Cloud Shell

Usage:

node samples/batch-annotate-files.js


Detect

View the source code.

Open in Cloud Shell

Usage:

node samples/detect.js


Detect.v1p1beta1

View the source code.

Open in Cloud Shell

Usage:

node samples/detect.v1p1beta1.js


Detect.v1p3beta1

View the source code.

Open in Cloud Shell

Usage:

node samples/detect.v1p3beta1.js


Face Detection

View the source code.

Open in Cloud Shell

Usage:

node samples/faceDetection.js


Cloud Vision Quickstart

Performs label detection of an image with a cat.

View the source code.

Open in Cloud Shell

Usage:

node quickstart.js


Cloud Vision Custom API Endpoint

Demonstrates using a custom API endpoint for the Cloud Vision API.

View the source code.

Open in Cloud Shell

Usage:

node setEndpoint.js


Text Detection

View the source code.

Open in Cloud Shell

Usage:

node samples/textDetection.js


Cloud Vision Face Detection

Identify faces in an image using the Cloud Vision API.

View the source code.

Open in Cloud Shell

Usage:

node vision-face-detection.js <fileName>