Skip to content

Commit 691c2df

Browse files
telpirionAhrar Monsur
authored and
Ahrar Monsur
committed
fix: adds spaces to region tags, other fixes (#369)
1 parent 90edccb commit 691c2df

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

video-intelligence/analyze.v1p3beta1.js

+7-6
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
'use strict';
1616

1717
async function detectPerson(path) {
18-
//[START video_detect_person_beta]
18+
// [START video_detect_person_beta]
1919
// Imports the Google Cloud Video Intelligence library + Node's fs library
2020
const Video = require('@google-cloud/video-intelligence').v1p3beta1;
2121
const fs = require('fs');
@@ -44,6 +44,7 @@ async function detectPerson(path) {
4444
},
4545
};
4646
// Detects people in a video
47+
// We get the first result because only one video is processed.
4748
const [operation] = await video.annotateVideo(request);
4849
const results = await operation.promise();
4950
console.log('Waiting for operation to complete...');
@@ -96,7 +97,7 @@ async function detectPerson(path) {
9697
// [END video_detect_person_beta]
9798
}
9899
async function detectPersonGCS(gcsUri) {
99-
//[START video_detect_person_gcs_beta]
100+
// [START video_detect_person_gcs_beta]
100101
// Imports the Google Cloud Video Intelligence library
101102
const Video = require('@google-cloud/video-intelligence').v1p3beta1;
102103
// Creates a client
@@ -173,7 +174,7 @@ async function detectPersonGCS(gcsUri) {
173174
// [END video_detect_person_gcs_beta]
174175
}
175176
async function detectFaces(path) {
176-
//[START video_detect_faces_beta]
177+
// [START video_detect_faces_beta]
177178
// Imports the Google Cloud Video Intelligence library + Node's fs library
178179
const Video = require('@google-cloud/video-intelligence').v1p3beta1;
179180
const fs = require('fs');
@@ -244,10 +245,10 @@ async function detectFaces(path) {
244245
}
245246
}
246247
}
247-
//[END video_detect_faces_beta]
248+
// [END video_detect_faces_beta]
248249
}
249250
async function detectFacesGCS(gcsUri) {
250-
//[START video_detect_faces_gcs_beta]
251+
// [START video_detect_faces_gcs_beta]
251252
// Imports the Google Cloud Video Intelligence library
252253
const Video = require('@google-cloud/video-intelligence').v1p3beta1;
253254
// Creates a client
@@ -314,7 +315,7 @@ async function detectFacesGCS(gcsUri) {
314315
}
315316
}
316317
}
317-
//[END video_detect_faces_gcs_beta]
318+
// [END video_detect_faces_gcs_beta]
318319
}
319320

320321
async function main() {

0 commit comments

Comments
 (0)