Skip to content

Commit f7f382e

Browse files
jmdobryAhrar Monsur
authored and
Ahrar Monsur
committed
Upgrade repo-tools and regenerate scaffolding. (#8)
1 parent 22dea09 commit f7f382e

File tree

3 files changed

+29
-19
lines changed

3 files changed

+29
-19
lines changed

video-intelligence/analyze.js

+26-16
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,13 @@ function analyzeFaces(gcsUri) {
2020
// Imports the Google Cloud Video Intelligence library
2121
const video = require('@google-cloud/video-intelligence');
2222

23-
// Instantiates a client
23+
// Creates a client
2424
const client = new video.VideoIntelligenceServiceClient();
2525

26-
// The GCS filepath of the video to analyze
27-
// const gcsUri = 'gs://my-bucket/my-video.mp4';
26+
/**
27+
* TODO(developer): Uncomment the following line before running the sample.
28+
*/
29+
// const gcsUri = 'GCS URI of the video to analyze, e.g. gs://my-bucket/my-video.mp4';
2830

2931
const request = {
3032
inputUri: gcsUri,
@@ -83,11 +85,13 @@ function analyzeLabelsGCS(gcsUri) {
8385
// Imports the Google Cloud Video Intelligence library
8486
const video = require('@google-cloud/video-intelligence');
8587

86-
// Instantiates a client
88+
// Creates a client
8789
const client = new video.VideoIntelligenceServiceClient();
8890

89-
// The GCS filepath of the video to analyze
90-
// const gcsUri = 'gs://my-bucket/my-video.mp4';
91+
/**
92+
* TODO(developer): Uncomment the following line before running the sample.
93+
*/
94+
// const gcsUri = 'GCS URI of the video to analyze, e.g. gs://my-bucket/my-video.mp4';
9195

9296
const request = {
9397
inputUri: gcsUri,
@@ -147,11 +151,13 @@ function analyzeLabelsLocal(path) {
147151
const video = require('@google-cloud/video-intelligence');
148152
const fs = require('fs');
149153

150-
// Instantiates a client
154+
// Creates a client
151155
const client = new video.VideoIntelligenceServiceClient();
152156

153-
// The local filepath of the video to analyze
154-
// const path = 'my-file.mp4';
157+
/**
158+
* TODO(developer): Uncomment the following line before running the sample.
159+
*/
160+
// const path = 'Local file to analyze, e.g. ./my-file.mp4';
155161

156162
// Reads a local video file and converts it to base64
157163
const file = fs.readFileSync(path);
@@ -215,11 +221,13 @@ function analyzeShots(gcsUri) {
215221
// Imports the Google Cloud Video Intelligence library
216222
const video = require('@google-cloud/video-intelligence');
217223

218-
// Instantiates a client
224+
// Creates a client
219225
const client = new video.VideoIntelligenceServiceClient();
220226

221-
// The GCS filepath of the video to analyze
222-
// const gcsUri = 'gs://my-bucket/my-video.mp4';
227+
/**
228+
* TODO(developer): Uncomment the following line before running the sample.
229+
*/
230+
// const gcsUri = 'GCS URI of file to analyze, e.g. gs://my-bucket/my-video.mp4';
223231

224232
const request = {
225233
inputUri: gcsUri,
@@ -284,11 +292,13 @@ function analyzeSafeSearch(gcsUri) {
284292
// Imports the Google Cloud Video Intelligence library
285293
const video = require('@google-cloud/video-intelligence');
286294

287-
// Instantiates a client
295+
// Creates a client
288296
const client = new video.VideoIntelligenceServiceClient();
289297

290-
// The GCS filepath of the video to analyze
291-
// const gcsUri = 'gs://my-bucket/my-video.mp4';
298+
/**
299+
* TODO(developer): Uncomment the following line before running the sample.
300+
*/
301+
// const gcsUri = 'GCS URI of video to analyze, e.g. gs://my-bucket/my-video.mp4';
292302

293303
const request = {
294304
inputUri: gcsUri,
@@ -345,7 +355,7 @@ function analyzeSafeSearch(gcsUri) {
345355
// [END analyze_safe_search]
346356
}
347357

348-
require(`yargs`) // eslint-disable-line
358+
require(`yargs`)
349359
.demand(1)
350360
.command(
351361
`faces <gcsUri>`,

video-intelligence/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"yargs": "10.0.3"
2121
},
2222
"devDependencies": {
23-
"@google-cloud/nodejs-repo-tools": "2.0.11",
24-
"ava": "0.22.0"
23+
"@google-cloud/nodejs-repo-tools": "2.1.0",
24+
"ava": "0.23.0"
2525
}
2626
}

video-intelligence/quickstart.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const videoIntelligence = require('@google-cloud/video-intelligence');
2222
// Creates a client
2323
const client = new videoIntelligence.VideoIntelligenceServiceClient();
2424

25-
// The GCS filepath of the video to analyze
25+
// The GCS uri of the video to analyze
2626
const gcsUri = 'gs://nodejs-docs-samples-video/quickstart_short.mp4';
2727

2828
// Construct request

0 commit comments

Comments
 (0)