This project is not covered by Drupal’s security advisory policy.

Synopsis

The GVision module provides integration with the Google Vision API using the Google PHP Client Library (Check Google PHP Client Library Drupal Project page for more info) through two blocks, where in one you can choose which API Function to use when uploading an image and in the other you can predefine the used API function via block configuration form. Although this being a simple request->return->display flow using AJAX, the main purpose of the module is what can be done through a hook that it makes available. Through that hook you can intercept the API response and process the results.

A good example is a case where you have a textfield for end users to fill, and you send the inserted value to a WebService in order to get the responses and show the information returned from the WebService to the user. In order to do that you can use one of the blocks in the same page as the textfield to give the users the option of uploading an image, and for example, using the OCR function to read text directly from the image, then with the hook you can intercept the result and process it before redirecting the user to a results page.

Requirements

Google PHP Client Library
Libraries
File

Alternatives

The Google Vision Module is an alternative for this module, as it provides a method to tag and categorize content of a Drupal site through the Google Vision API.

Roadmap

Futurely this module will provide a widget for the Image field type that implements the same functionality, and then also provide another hook for that case.
Please feel free to contribute!

Maintainers

Davi Cunha

Credits

Lucas Arruda

Supporting organizations: 

Project information

Releases