Permalink
..
Failed to load latest commit information.
resources Add new video samples (#382) May 10, 2017
system-test
.eslintrc.yml Repo Migration (#4) Oct 24, 2017
README.md
analyze.js Enable prefer-const in the eslint config (#102) Sep 20, 2018
package.json Release v1.4.1 (#113) Oct 19, 2018
quickstart.js Update sample region tags (#39) May 21, 2018

README.md

Google Cloud Platform logo

Google Cloud Video Intelligence API: Node.js Samples

Open in Cloud Shell

The Cloud Video Intelligence API allows developers to use Google video analysis technology as part of their applications.

Table of Contents

Before you begin

Before running the samples, make sure you've followed the steps in the Before you begin section of the client library's README.

Samples

Video Intelligence

View the source code.

Open in Cloud Shell

Usage: node analyze.js --help

analyze.js <command>

Commands:
  analyze.js faces <gcsUri>          Analyzes faces in a video stored in Google Cloud Storage using the Cloud Video
                                     Intelligence API.
  analyze.js shots <gcsUri>          Analyzes shot angles in a video stored in Google Cloud Storage using the Cloud
                                     Video Intelligence API.
  analyze.js labels-gcs <gcsUri>     Labels objects in a video stored in Google Cloud Storage using the Cloud Video
                                     Intelligence API.
  analyze.js labels-file <filePath>  Labels objects in a video stored locally using the Cloud Video Intelligence API.
  analyze.js safe-search <gcsUri>    Detects explicit content in a video stored in Google Cloud Storage.

Options:
  --version  Show version number                                                                               [boolean]
  --help     Show help                                                                                         [boolean]

Examples:
  node analyze.js faces gs://demomaker/larry_sergey_ice_bucket_short.mp4
  node analyze.js shots gs://demomaker/sushi.mp4
  node analyze.js labels-gcs gs://demomaker/tomatoes.mp4
  node analyze.js labels-file cat.mp4
  node analyze.js safe-search gs://demomaker/tomatoes.mp4

For more information, see https://cloud.google.com/video-intelligence/docs