|
16 | 16 | 'use strict'; |
17 | 17 |
|
18 | 18 | function analyzeLabelsGCS(gcsUri) { |
19 | | - // [START analyze_labels_gcs] |
| 19 | + // [START video_analyze_labels_gcs] |
20 | 20 | // Imports the Google Cloud Video Intelligence library |
21 | 21 | const video = require('@google-cloud/video-intelligence').v1; |
22 | 22 |
|
@@ -77,11 +77,11 @@ function analyzeLabelsGCS(gcsUri) { |
77 | 77 | .catch(err => { |
78 | 78 | console.error('ERROR:', err); |
79 | 79 | }); |
80 | | - // [END analyze_labels_gcs] |
| 80 | + // [END video_analyze_labels_gcs] |
81 | 81 | } |
82 | 82 |
|
83 | 83 | function analyzeLabelsLocal(path) { |
84 | | - // [START analyze_labels_local] |
| 84 | + // [START video_analyze_labels_local] |
85 | 85 | // Imports the Google Cloud Video Intelligence library + Node's fs library |
86 | 86 | const video = require('@google-cloud/video-intelligence').v1; |
87 | 87 | const fs = require('fs'); |
@@ -148,11 +148,11 @@ function analyzeLabelsLocal(path) { |
148 | 148 | .catch(err => { |
149 | 149 | console.error('ERROR:', err); |
150 | 150 | }); |
151 | | - // [END analyze_labels_local] |
| 151 | + // [END video_analyze_labels_local] |
152 | 152 | } |
153 | 153 |
|
154 | 154 | function analyzeShots(gcsUri) { |
155 | | - // [START analyze_shots] |
| 155 | + // [START video_analyze_shots] |
156 | 156 | // Imports the Google Cloud Video Intelligence library |
157 | 157 | const video = require('@google-cloud/video-intelligence').v1; |
158 | 158 |
|
@@ -219,11 +219,11 @@ function analyzeShots(gcsUri) { |
219 | 219 | .catch(err => { |
220 | 220 | console.error('ERROR:', err); |
221 | 221 | }); |
222 | | - // [END analyze_shots] |
| 222 | + // [END video_analyze_shots] |
223 | 223 | } |
224 | 224 |
|
225 | 225 | function analyzeSafeSearch(gcsUri) { |
226 | | - // [START analyze_safe_search] |
| 226 | + // [START video_analyze_explicit_content] |
227 | 227 | // Imports the Google Cloud Video Intelligence library |
228 | 228 | const video = require('@google-cloud/video-intelligence').v1; |
229 | 229 |
|
@@ -287,7 +287,7 @@ function analyzeSafeSearch(gcsUri) { |
287 | 287 | .catch(err => { |
288 | 288 | console.error('ERROR:', err); |
289 | 289 | }); |
290 | | - // [END analyze_safe_search] |
| 290 | + // [END video_analyze_explicit_content] |
291 | 291 | } |
292 | 292 |
|
293 | 293 | function analyzeVideoTranscription(gcsUri) { |
|
0 commit comments