File tree 2 files changed +51
-9
lines changed
packages/google-cloud-videointelligence/samples
2 files changed +51
-9
lines changed Original file line number Diff line number Diff line change @@ -11,22 +11,34 @@ detection, and shot change detection.
11
11
## Table of Contents
12
12
13
13
* [ Setup] ( #setup )
14
- * [ Running] ( #running )
14
+ * [ Samples] ( #samples )
15
+ * [ Analyze] ( #analyze )
16
+ * [ Running the tests] ( #running-the-tests )
15
17
16
18
## Setup
17
19
18
- 1 . Read [ Prerequisites] [ prereq ] and [ How to run a sample] [ run ] first.
19
- 1 . Install dependencies:
20
+ 1 . Read [ Prerequisites] [ prereq ] and [ How to run a sample] [ run ] first.
21
+ 1 . Install dependencies:
22
+
23
+ With ` npm ` :
20
24
21
25
npm install
22
26
27
+ With ` yarn ` :
28
+
29
+ yarn install
30
+
23
31
[ prereq ] : ../README.md#prerequisities
24
32
[ run ] : ../README.md#how-to-run-a-sample
25
33
26
- ## Running
34
+ ## Samples
35
+
36
+ ### Analyze
27
37
28
38
View the [ documentation] [ analyze_docs ] or the [ source code] [ analyze_code ] .
29
39
40
+ __ Usage:__ ` node analyze.js --help `
41
+
30
42
```
31
43
Commands:
32
44
faces <gcsUri> Analyzes faces in a video using the Cloud Video Intelligence API.
@@ -46,3 +58,18 @@ For more information, see https://cloud.google.com/video-intelligence/docs
46
58
47
59
[ analyze_docs ] : https://cloud.google.com/video-intelligence/docs
48
60
[ analyze_code ] : analyze.js
61
+
62
+ ## Running the tests
63
+
64
+ 1 . Set the ` GCLOUD_PROJECT ` and ` GOOGLE_APPLICATION_CREDENTIALS ` environment
65
+ variables.
66
+
67
+ 1 . Run the tests:
68
+
69
+ With ` npm ` :
70
+
71
+ npm test
72
+
73
+ With ` yarn ` :
74
+
75
+ yarn test
Original file line number Diff line number Diff line change 2
2
"name" : " nodejs-docs-samples-videointelligence" ,
3
3
"version" : " 0.0.1" ,
4
4
"private" : true ,
5
- "license" : " Apache Version 2.0" ,
5
+ "license" : " Apache- 2.0" ,
6
6
"author" : " Google Inc." ,
7
+ "repository" : {
8
+ "type" : " git" ,
9
+ "url" : " https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git"
10
+ },
11
+ "cloud" : {
12
+ "requiresKeyFile" : true ,
13
+ "requiresProjectId" : true
14
+ },
15
+ "engines" : {
16
+ "node" : " >=4.3.2"
17
+ },
7
18
"scripts" : {
8
- "test" : " cd ..; npm run st -- --verbose video/system-test/*.test.js"
19
+ "lint" : " samples lint" ,
20
+ "pretest" : " npm run lint" ,
21
+ "system-test" : " ava -T 10m --verbose system-test/*.test.js" ,
22
+ "test" : " npm run system-test"
9
23
},
10
24
"dependencies" : {
11
25
"@google-cloud/videointelligence" : " https://storage.googleapis.com/videointelligence-alpha/videointelligence-nodejs.tar.gz" ,
12
- "yargs" : " 7.0.2 "
26
+ "yargs" : " 7.1.0 "
13
27
},
14
- "engines" : {
15
- "node" : " >=4.3.2"
28
+ "devDependencies" : {
29
+ "@google-cloud/nodejs-repo-tools" : " 1.3.1" ,
30
+ "ava" : " 0.19.1"
16
31
}
17
32
}
You can’t perform that action at this time.
0 commit comments