|
4 | 4 |
|
5 | 5 | # [Google Cloud Vision API: Node.js Samples](https://github.com/googleapis/nodejs-vision) |
6 | 6 |
|
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). |
0 commit comments