Skip to content

kalamuna/google_cloud_vision

Repository files navigation

Google Cloud Vision

Google Cloud Vision enables developers to understand the content of an image by encapsulating powerful machine learning models in an easy-to-use REST API. This allows Drupal to use the Google Cloud Vision API across the site.

Features

  • Ensures uploaded images uploaded with image fields do not contain adult content
  • Saves Google Vision Keys safely through Lockr

Dependencies

Install

  1. Visit the Google Cloud Vision API and enable the API

    Google Cloud Vision

  2. Head over to the Google Cloud Console Service Account Credentials and create an API key

    Create Credentials

  3. Create the JSON service key

    Export Service Key as JSON

  4. In /admin/config/system/keys, add a new key named "google", and enter in the JSON service account key you acquired

  5. Install the Google Cloud Vision module as you would install any Drupal 8 module.

  6. Enable the Google Cloud Vision module.

  7. Visit /admin/config/google-cloud-vision/settings and set both a:

    • Key Machine Name: This is the name of the key that will be used in the Key module. You had used "google" for this.
    • Google Project ID: This is the name of the application that will be used on the Google Cloud Vision side
  8. Visit /google-cloud-vision/demo and ensure Google Cloud Vision is functioning properly.

Usage

Once the module is installed and configured properly, uploading an image to an image field will have Google Cloud Vision check the image securely.

About

Google Cloud Vision Drupal module

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published