The Cloud Video Intelligence API allows developers to easily integrate video analysis within applications, including video labeling, safe search , and shot change detection.
-
Read Prerequisites and How to run a sample first.
-
Install dependencies:
With
npm:npm installWith
yarn:yarn install
View the documentation or the source code.
Usage: node analyze.js --help
Commands:
shots <gcsUri> Analyzes shot angles in a video stored in Google Cloud Storage using the Cloud Video
Intelligence API.
labels-gcs <gcsUri> Labels objects in a video stored in Google Cloud Storage using the Cloud Video Intelligence API.
labels-file <gcsUri> Labels objects in a video stored locally using the Cloud Video Intelligence API.
Options:
--help Show help [boolean]
Examples:
node analyze.js shots gs://my-bucket/my-video.mp4
node analyze.js labels-gcs gs://my-bucket/my-video.mp4
node analyze.js labels-file my-video.mp4
node analyze.js unsafe-content gs://my-bucket/my-video.mp4
For more information, see https://cloud.google.com/video-intelligence/docs
-
Set the
GCLOUD_PROJECTandGOOGLE_APPLICATION_CREDENTIALSenvironment variables. -
Run the tests:
With
npm:npm testWith
yarn:yarn test