<NME> README.md
<BEF> [//]: # "This README.md file is auto-generated, all changes to this file will be lost."
[//]: # "To regenerate it, use `python -m synthtool`."
<img src="https://avatars2.githubusercontent.com/u/2810941?v=3&s=96" alt="Google Cloud Platform logo" title="Google Cloud Platform" align="right" height="96" width="96"/>

# [Google Cloud Vision API: Node.js Samples](https://github.com/googleapis/nodejs-vision)

[![Open in Cloud Shell][shell_img]][shell_link]



## Table of Contents

* [Before you begin](#before-you-begin)
* [Samples](#samples)
  * [Detect](#detect)
  * [Face Detection](#face-detection)
  * [Quickstart](#quickstart)
  * [Text Detection](#text-detection)
  * [Face Detection](#face-detection)
  * [Cloud Vision Quickstart](#cloud-vision-quickstart)
  * [Cloud Vision Custom API Endpoint](#cloud-vision-custom-api-endpoint)
  * [Text Detection](#text-detection)
  * [Cloud Vision Face Detection](#cloud-vision-face-detection)

## Before you begin

Before running the samples, make sure you've followed the steps outlined in
[Using the client library](https://github.com/googleapis/nodejs-vision#using-the-client-library).

`cd samples`

`npm install`

`cd ..`

## Samples



### Async-batch-annotate-images

View the [source code](https://github.com/googleapis/nodejs-vision/blob/main/samples/async-batch-annotate-images.js).



### Face Detection

View the [source code](https://github.com/googleapis/nodejs-vision/blob/master/samples/faceDetection.js).
`node samples/batch-annotate-files.js`


-----




### Detect

View the [source code](https://github.com/googleapis/nodejs-vision/blob/main/samples/detect.js).

[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-vision&page=editor&open_in_editor=samples/detect.js,samples/README.md)

__Usage:__


`node samples/detect.js`


-----




### Detect.v1p1beta1

View the [source code](https://github.com/googleapis/nodejs-vision/blob/main/samples/detect.v1p1beta1.js).

[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-vision&page=editor&open_in_editor=samples/detect.v1p1beta1.js,samples/README.md)

__Usage:__


`node samples/detect.v1p1beta1.js`


-----




### Detect.v1p3beta1

View the [source code](https://github.com/googleapis/nodejs-vision/blob/main/samples/detect.v1p3beta1.js).

[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-vision&page=editor&open_in_editor=samples/detect.v1p3beta1.js,samples/README.md)

__Usage:__


`node samples/detect.v1p3beta1.js`


-----




### Face Detection

View the [source code](https://github.com/googleapis/nodejs-vision/blob/main/samples/faceDetection.js).

[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-vision&page=editor&open_in_editor=samples/faceDetection.js,samples/README.md)

__Usage:__


`node samples/faceDetection.js`


-----




### Cloud Vision Quickstart

Performs label detection of an image with a cat.

View the [source code](https://github.com/googleapis/nodejs-vision/blob/main/samples/quickstart.js).

[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-vision&page=editor&open_in_editor=samples/quickstart.js,samples/README.md)

__Usage:__


`node quickstart.js`


-----




### Cloud Vision Custom API Endpoint

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

View the [source code](https://github.com/googleapis/nodejs-vision/blob/main/samples/setEndpoint.js).

[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-vision&page=editor&open_in_editor=samples/setEndpoint.js,samples/README.md)

__Usage:__


`node setEndpoint.js`


-----




### Text Detection

View the [source code](https://github.com/googleapis/nodejs-vision/blob/main/samples/textDetection.js).

[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-vision&page=editor&open_in_editor=samples/textDetection.js,samples/README.md)

__Usage:__


`node samples/textDetection.js`


-----




### Cloud Vision Face Detection

Identify faces in an image using the Cloud Vision API.

View the [source code](https://github.com/googleapis/nodejs-vision/blob/main/samples/vision-face-detection.js).

[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-vision&page=editor&open_in_editor=samples/vision-face-detection.js,samples/README.md)

__Usage:__


`node vision-face-detection.js <fileName>`






[shell_img]: https://gstatic.com/cloudssh/images/open-btn.png
[shell_link]: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-vision&page=editor&open_in_editor=samples/README.md
[product-docs]: https://cloud.google.com/vision

<MSG> docs: add v1p1beta1 and v1p3beta1 samples to README (#398)


<DFF> @@ -13,6 +13,8 @@
 * [Before you begin](#before-you-begin)
 * [Samples](#samples)
   * [Detect](#detect)
+  * [Detect.v1p1beta1](#detect.v1p1beta1)
+  * [Detect.v1p3beta1](#detect.v1p3beta1)
   * [Face Detection](#face-detection)
   * [Quickstart](#quickstart)
   * [Text Detection](#text-detection)
@@ -43,6 +45,40 @@ __Usage:__
 
 
 
+### Detect.v1p1beta1
+
+View the [source code](https://github.com/googleapis/nodejs-vision/blob/master/samples/detect.v1p1beta1.js).
+
+[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-vision&page=editor&open_in_editor=samples/detect.v1p1beta1.js,samples/README.md)
+
+__Usage:__
+
+
+`node detect.v1p1beta1.js`
+
+
+-----
+
+
+
+
+### Detect.v1p3beta1
+
+View the [source code](https://github.com/googleapis/nodejs-vision/blob/master/samples/detect.v1p3beta1.js).
+
+[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-vision&page=editor&open_in_editor=samples/detect.v1p3beta1.js,samples/README.md)
+
+__Usage:__
+
+
+`node detect.v1p3beta1.js`
+
+
+-----
+
+
+
+
 ### Face Detection
 
 View the [source code](https://github.com/googleapis/nodejs-vision/blob/master/samples/faceDetection.js).

{'addition_count': 36, 'commit_subject': 'docs: add v1p1beta1 and v1p3beta1 samples to README (#398)', 'deletion_count': 0, 'file_extension': '.md', 'lang': 'md', 'license': 'apache-2.0', 'repo_name': 'googleapis/nodejs-vision'}