Before running the samples, make sure you've followed the steps outlined in Using the client library.
cd samples
npm install
cd ..
View the source code.
Usage:
node samples/async-batch-annotate-images.js
View the source code.
Usage:
node samples/batch-annotate-files-gcs.js
View the source code.
Usage:
node samples/batch-annotate-files.js
View the source code.
Usage:
node samples/detect.js
View the source code.
Usage:
node samples/detect.v1p1beta1.js
View the source code.
Usage:
node samples/detect.v1p3beta1.js
View the source code.
Usage:
node samples/faceDetection.js
Performs label detection of an image with a cat.
View the source code.
Usage:
node quickstart.js
Demonstrates using a custom API endpoint for the Cloud Vision API.
View the source code.
Usage:
node setEndpoint.js
View the source code.
Usage:
node samples/textDetection.js
Identify faces in an image using the Cloud Vision API.
View the source code.
Usage:
node vision-face-detection.js <fileName>
