Skip to content
This repository was archived by the owner on Jul 20, 2023. It is now read-only.

Commit 4d5c0ca

Browse files
telpiriongcf-owl-bot[bot]meredithslota
authored
chore(samples): removing migrated samples (#1083)
* chore(samples): removing migrated samples * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * add package.json back * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * chore: remove samples-test.cfg from continuous/node12 * chore: remove samples-test.cfg from presubmit/node12 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * Trying to resolve test failures * moar test fix Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: meredithslota <meredithslota@google.com>
1 parent 352438e commit 4d5c0ca

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+5
-5028
lines changed

README.md

Lines changed: 2 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ Google APIs Client Libraries, in [Client Libraries Explained][explained].
3131
* [Quickstart](#quickstart)
3232
* [Before you begin](#before-you-begin)
3333
* [Installing the client library](#installing-the-client-library)
34-
* [Using the client library](#using-the-client-library)
35-
* [Samples](#samples)
34+
35+
3636
* [Versioning](#versioning)
3737
* [Contributing](#contributing)
3838
* [License](#license)
@@ -54,45 +54,6 @@ npm install @google-cloud/vision
5454
```
5555

5656

57-
### Using the client library
58-
59-
```javascript
60-
async function quickstart() {
61-
// Imports the Google Cloud client library
62-
const vision = require('@google-cloud/vision');
63-
64-
// Creates a client
65-
const client = new vision.ImageAnnotatorClient();
66-
67-
// Performs label detection on the image file
68-
const [result] = await client.labelDetection('./resources/wakeupcat.jpg');
69-
const labels = result.labelAnnotations;
70-
console.log('Labels:');
71-
labels.forEach(label => console.log(label.description));
72-
}
73-
quickstart();
74-
75-
```
76-
77-
78-
79-
## Samples
80-
81-
Samples are in the [`samples/`](https://github.com/googleapis/nodejs-vision/tree/main/samples) directory. Each sample's `README.md` has instructions for running its sample.
82-
83-
| Sample | Source Code | Try it |
84-
| --------------------------- | --------------------------------- | ------ |
85-
| Async-batch-annotate-images | [source code](https://github.com/googleapis/nodejs-vision/blob/main/samples/async-batch-annotate-images.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/async-batch-annotate-images.js,samples/README.md) |
86-
| Batch-annotate-files-gcs | [source code](https://github.com/googleapis/nodejs-vision/blob/main/samples/batch-annotate-files-gcs.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/batch-annotate-files-gcs.js,samples/README.md) |
87-
| Batch-annotate-files | [source code](https://github.com/googleapis/nodejs-vision/blob/main/samples/batch-annotate-files.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/batch-annotate-files.js,samples/README.md) |
88-
| Detect | [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) |
89-
| Detect.v1p1beta1 | [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) |
90-
| Detect.v1p3beta1 | [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) |
91-
| Face Detection | [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) |
92-
| Cloud Vision Quickstart | [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) |
93-
| Cloud Vision Custom API Endpoint | [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) |
94-
| Text Detection | [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) |
95-
| Cloud Vision Face Detection | [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) |
9657

9758

9859

protos/protos.d.ts

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

protos/protos.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

samples/README.md

Lines changed: 1 addition & 230 deletions
Original file line numberDiff line numberDiff line change
@@ -4,233 +4,4 @@
44

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

7-
[![Open in Cloud Shell][shell_img]][shell_link]
8-
9-
10-
11-
## Table of Contents
12-
13-
* [Before you begin](#before-you-begin)
14-
* [Samples](#samples)
15-
* [Async-batch-annotate-images](#async-batch-annotate-images)
16-
* [Batch-annotate-files-gcs](#batch-annotate-files-gcs)
17-
* [Batch-annotate-files](#batch-annotate-files)
18-
* [Detect](#detect)
19-
* [Detect.v1p1beta1](#detect.v1p1beta1)
20-
* [Detect.v1p3beta1](#detect.v1p3beta1)
21-
* [Face Detection](#face-detection)
22-
* [Cloud Vision Quickstart](#cloud-vision-quickstart)
23-
* [Cloud Vision Custom API Endpoint](#cloud-vision-custom-api-endpoint)
24-
* [Text Detection](#text-detection)
25-
* [Cloud Vision Face Detection](#cloud-vision-face-detection)
26-
27-
## Before you begin
28-
29-
Before running the samples, make sure you've followed the steps outlined in
30-
[Using the client library](https://github.com/googleapis/nodejs-vision#using-the-client-library).
31-
32-
`cd samples`
33-
34-
`npm install`
35-
36-
`cd ..`
37-
38-
## Samples
39-
40-
41-
42-
### Async-batch-annotate-images
43-
44-
View the [source code](https://github.com/googleapis/nodejs-vision/blob/main/samples/async-batch-annotate-images.js).
45-
46-
[![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/async-batch-annotate-images.js,samples/README.md)
47-
48-
__Usage:__
49-
50-
51-
`node samples/async-batch-annotate-images.js`
52-
53-
54-
-----
55-
56-
57-
58-
59-
### Batch-annotate-files-gcs
60-
61-
View the [source code](https://github.com/googleapis/nodejs-vision/blob/main/samples/batch-annotate-files-gcs.js).
62-
63-
[![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/batch-annotate-files-gcs.js,samples/README.md)
64-
65-
__Usage:__
66-
67-
68-
`node samples/batch-annotate-files-gcs.js`
69-
70-
71-
-----
72-
73-
74-
75-
76-
### Batch-annotate-files
77-
78-
View the [source code](https://github.com/googleapis/nodejs-vision/blob/main/samples/batch-annotate-files.js).
79-
80-
[![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/batch-annotate-files.js,samples/README.md)
81-
82-
__Usage:__
83-
84-
85-
`node samples/batch-annotate-files.js`
86-
87-
88-
-----
89-
90-
91-
92-
93-
### Detect
94-
95-
View the [source code](https://github.com/googleapis/nodejs-vision/blob/main/samples/detect.js).
96-
97-
[![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)
98-
99-
__Usage:__
100-
101-
102-
`node samples/detect.js`
103-
104-
105-
-----
106-
107-
108-
109-
110-
### Detect.v1p1beta1
111-
112-
View the [source code](https://github.com/googleapis/nodejs-vision/blob/main/samples/detect.v1p1beta1.js).
113-
114-
[![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)
115-
116-
__Usage:__
117-
118-
119-
`node samples/detect.v1p1beta1.js`
120-
121-
122-
-----
123-
124-
125-
126-
127-
### Detect.v1p3beta1
128-
129-
View the [source code](https://github.com/googleapis/nodejs-vision/blob/main/samples/detect.v1p3beta1.js).
130-
131-
[![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)
132-
133-
__Usage:__
134-
135-
136-
`node samples/detect.v1p3beta1.js`
137-
138-
139-
-----
140-
141-
142-
143-
144-
### Face Detection
145-
146-
View the [source code](https://github.com/googleapis/nodejs-vision/blob/main/samples/faceDetection.js).
147-
148-
[![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)
149-
150-
__Usage:__
151-
152-
153-
`node samples/faceDetection.js`
154-
155-
156-
-----
157-
158-
159-
160-
161-
### Cloud Vision Quickstart
162-
163-
Performs label detection of an image with a cat.
164-
165-
View the [source code](https://github.com/googleapis/nodejs-vision/blob/main/samples/quickstart.js).
166-
167-
[![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)
168-
169-
__Usage:__
170-
171-
172-
`node quickstart.js`
173-
174-
175-
-----
176-
177-
178-
179-
180-
### Cloud Vision Custom API Endpoint
181-
182-
Demonstrates using a custom API endpoint for the Cloud Vision API.
183-
184-
View the [source code](https://github.com/googleapis/nodejs-vision/blob/main/samples/setEndpoint.js).
185-
186-
[![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)
187-
188-
__Usage:__
189-
190-
191-
`node setEndpoint.js`
192-
193-
194-
-----
195-
196-
197-
198-
199-
### Text Detection
200-
201-
View the [source code](https://github.com/googleapis/nodejs-vision/blob/main/samples/textDetection.js).
202-
203-
[![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)
204-
205-
__Usage:__
206-
207-
208-
`node samples/textDetection.js`
209-
210-
211-
-----
212-
213-
214-
215-
216-
### Cloud Vision Face Detection
217-
218-
Identify faces in an image using the Cloud Vision API.
219-
220-
View the [source code](https://github.com/googleapis/nodejs-vision/blob/main/samples/vision-face-detection.js).
221-
222-
[![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)
223-
224-
__Usage:__
225-
226-
227-
`node vision-face-detection.js <fileName>`
228-
229-
230-
231-
232-
233-
234-
[shell_img]: https://gstatic.com/cloudssh/images/open-btn.png
235-
[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
236-
[product-docs]: https://cloud.google.com/vision
7+
All samples have been migrated [here](https://github.com/GoogleCloudPlatform/nodejs-docs-samples/tree/main/vision).

samples/async-batch-annotate-images.js

Lines changed: 0 additions & 88 deletions
This file was deleted.

0 commit comments

Comments
 (0)