|
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"/> |
| 1 | +Samples for the [Google Cloud Video Intelligence API Node.js Client][client] |
| 2 | +have moved to [github.com/googleapis/nodejs-video-intelligence/tree/master/samples/][samples]. |
2 | 3 |
|
3 | | -# Google Cloud Video Intelligence API Node.js Samples |
4 | | - |
5 | | -[]() |
6 | | - |
7 | | -The [Cloud Video Intelligence API](https://cloud.google.com/video-intelligence) allows developers to use Google video analysis technology as part of their applications. |
8 | | - |
9 | | -## Table of Contents |
10 | | - |
11 | | -* [Setup](#setup) |
12 | | -* [Samples](#samples) |
13 | | - * [Video Intelligence](#video-intelligence) |
14 | | -* [Running the tests](#running-the-tests) |
15 | | - |
16 | | -## Setup |
17 | | - |
18 | | -1. Read [Prerequisites][prereq] and [How to run a sample][run] first. |
19 | | -1. Install dependencies: |
20 | | - |
21 | | - With **npm**: |
22 | | - |
23 | | - npm install |
24 | | - |
25 | | - With **yarn**: |
26 | | - |
27 | | - yarn install |
28 | | - |
29 | | -[prereq]: ../README.md#prerequisites |
30 | | -[run]: ../README.md#how-to-run-a-sample |
31 | | - |
32 | | -## Samples |
33 | | - |
34 | | -### Video Intelligence |
35 | | - |
36 | | -View the [documentation][video_0_docs] or the [source code][video_0_code]. |
37 | | - |
38 | | -__Usage:__ `node analyze.js --help` |
39 | | - |
40 | | -``` |
41 | | -Commands: |
42 | | - faces <gcsUri> Analyzes faces in a video stored in Google Cloud Storage using the Cloud Video Intelligence API. |
43 | | - shots <gcsUri> Analyzes shot angles in a video stored in Google Cloud Storage using the Cloud Video |
44 | | - Intelligence API. |
45 | | - labels-gcs <gcsUri> Labels objects in a video stored in Google Cloud Storage using the Cloud Video Intelligence API. |
46 | | - labels-file <gcsUri> Labels objects in a video stored locally using the Cloud Video Intelligence API. |
47 | | - safe-search <gcsUri> Detects explicit content in a video stored in Google Cloud Storage. |
48 | | -
|
49 | | -Options: |
50 | | - --help Show help [boolean] |
51 | | -
|
52 | | -Examples: |
53 | | - node analyze.js faces gs://demomaker/larry_sergey_ice_bucket_short.mp4 |
54 | | - node analyze.js shots gs://demomaker/sushi.mp4 |
55 | | - node analyze.js labels-gcs gs://demomaker/tomatoes.mp4 |
56 | | - node analyze.js labels-file resources/cat.mp4 |
57 | | - node analyze.js safe-search gs://demomaker/tomatoes.mp4 |
58 | | -
|
59 | | -For more information, see https://cloud.google.com/video-intelligence/docs |
60 | | -``` |
61 | | - |
62 | | -[video_0_docs]: https://cloud.google.com/video-intelligence/docs |
63 | | -[video_0_code]: analyze.js |
64 | | - |
65 | | -## Running the tests |
66 | | - |
67 | | -1. Set the **GCLOUD_PROJECT** and **GOOGLE_APPLICATION_CREDENTIALS** environment variables. |
68 | | - |
69 | | -1. Run the tests: |
70 | | - |
71 | | - With **npm**: |
72 | | - |
73 | | - npm test |
74 | | - |
75 | | - With **yarn**: |
76 | | - |
77 | | - yarn test |
| 4 | +[client]: https://github.com/googleapis/nodejs-video-intelligence |
| 5 | +[samples]: https://github.com/googleapis/nodejs-video-intelligence/tree/master/samples |
0 commit comments