Skip to content

Commit 1981d82

Browse files
gguussdpebot
authored andcommitted
Adds video intelligence sample instructions. (GoogleCloudPlatform#320)
* Adds video intelligence sample instructions. * Update README.md * Update command-line instructions to match sample
1 parent 0a4e119 commit 1981d82

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed

Diff for: video/README.md

+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
<img src="https://avatars2.githubusercontent.com/u/2810941?v=3&s=96" alt="Google Cloud Platform logo" title="Google Cloud Platform" align="right" height="96" width="96"/>
2+
3+
# Google Cloud Video Intelligence API Node.js Samples
4+
5+
The [Cloud Video Intellience API][video_docs] allows developers to easily
6+
integrate video analysis within applications, including video labeling, face
7+
detection, and shot change detection.
8+
9+
[video_docs]: https://cloud.google.com/video-intelligence/docs/
10+
11+
## Table of Contents
12+
13+
* [Setup](#setup)
14+
* [Running](#running)
15+
16+
## Setup
17+
18+
1. Read [Prerequisites][prereq] and [How to run a sample][run] first.
19+
1. Install dependencies:
20+
21+
npm install
22+
23+
[prereq]: ../README.md#prerequisities
24+
[run]: ../README.md#how-to-run-a-sample
25+
26+
## Running
27+
28+
View the [documentation][analyze_docs] or the [source code][analyze_code].
29+
30+
```
31+
node analyze.js
32+
Commands:
33+
faces <gcsPath> Analyzes faces in a video using the Cloud Video Intelligence API.
34+
shots <gcsPath> Analyzes shot angles in a video using the Cloud Video Intelligence API.
35+
labels <gcsPath> Labels objects in a video using the Cloud Video Intelligence API.
36+
37+
Options:
38+
--help Show help [boolean]
39+
40+
Examples:
41+
node analyze.js faces gs://my-bucket/my-video.mp4
42+
node analyze.js shots gs://my-bucket/my-video.mp4
43+
node analyze.js labels gs://my-bucket/my-video.mp4
44+
45+
```
46+
47+
[analyze_docs]: https://cloud.google.com/video-intelligence/docs
48+
[analyze_code]: analyze.js

0 commit comments

Comments
 (0)