Skip to content

Commit dd64c9a

Browse files
authored
Revert "Remove video samples which have moved. (#505)"
This reverts commit 5c17b77.
1 parent 5c17b77 commit dd64c9a

File tree

9 files changed

+657
-15
lines changed

9 files changed

+657
-15
lines changed

README.md

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ on Google Cloud Platform.
4242
* [Google Cloud Prediction API](#google-cloud-prediction-api)
4343
* [Google Cloud Speech API (Beta)](#google-cloud-speech-api-beta)
4444
* [Google Translate API](#google-translate-api)
45-
* [Google Cloud Video Intelligence API](#google-cloud-video-intelligence-api)
4645
* [Google Cloud Vision API](#google-cloud-vision-api)
4746
* [**Management Tools**](#management-tools)
4847
* [Stackdriver Debugger](#stackdriver-debugger)
@@ -335,16 +334,6 @@ View the [Translate API Node.js samples][translate_samples].
335334
[translate_docs]: https://cloud.google.com/translate/docs/
336335
[translate_samples]: translate
337336

338-
#### Google Cloud Video Intelligence API
339-
340-
The [Cloud Video Intelligence API][video_intelligence_docs] allows developers to
341-
use Google video analysis technology as part of their applications.
342-
343-
View the [Cloud Video Intelligence API Node.js samples][video_intelligence_samples].
344-
345-
[video_intelligence_docs]: https://cloud.google.com/video-intelligence/docs/
346-
[video_intelligence_samples]: https://github.com/googleapis/nodejs-video-intelligence/tree/master/samples
347-
348337
#### Google Cloud Vision API
349338

350339
The [Cloud Vision API][vision_docs] allows developers to easily integrate vision

circle.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,4 +108,6 @@ deployment:
108108
- node scripts/build "storage-transfer"
109109
- node scripts/build "trace"
110110
- node scripts/build "translate"
111+
# TODO: This build times out. Does video need more than 10 minutes?
112+
# - node scripts/build "video"
111113
- node scripts/build "vision"

video/README.md

Lines changed: 76 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,77 @@
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].
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"/>
32

4-
[client]: https://github.com/googleapis/nodejs-video-intelligence
5-
[samples]: https://github.com/googleapis/nodejs-video-intelligence/tree/master/samples
3+
# Google Cloud Video Intelligence API Node.js Samples
4+
5+
[![Build](https://storage.googleapis.com/cloud-docs-samples-badges/GoogleCloudPlatform/nodejs-docs-samples/nodejs-docs-samples-videointelligence.svg)]()
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

0 commit comments

Comments
 (0)