Skip to content

A simple Google Cloud Video Intelligence Demo app in Python

Notifications You must be signed in to change notification settings

VivekWisdom/AdGenceVideoDemo

Repository files navigation

AdGence

Google Cloud Video Intelligence API Sample

Google Cloud Video Intelligence API

Setup

Authentication

Authentication is typically done through Application Default Credentials_, which means you do not have to change the code to authenticate as long as your environment has credentials. You have a few options for setting up authentication:

  • When running locally, use the Google Cloud SDK

      gcloud auth application-default login
    
  • You can create a Service Account key file This file can be used to authenticate to Google Cloud Platform services from any environment. To use the file, set the GOOGLE_APPLICATION_CREDENTIALS environment variable to the path to the key file, for example:

      export GOOGLE_APPLICATION_CREDENTIALS=/path/to/service_account.json
    

Samples

  • Labels Sample

    To run this sample:

    $ python adgence_labels.py

    usage: adgence_labels.py [-h] path

    This application demonstrates how to perform basic operations with the Google Cloud Video Intelligence API.

    For more information, check out the documentation at https://cloud.google.com/videointelligence/docs.

    Usage Example:

      python labels.py gs://cloud-ml-sandbox/video/chicago.mp4
    

    positional arguments: path GCS file path for label detection.

    optional arguments: -h, --help show this help message and exit

About

A simple Google Cloud Video Intelligence Demo app in Python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages