Integrating Cloud Vision API with SmartExchange

Now that we have seen what can be done using Cloud Vision API, let's actually integrate this into SmartExchange. The idea is that we will allow users to upload images as part of their posts. Using the Cloud Vision API service, we are going to fetch the image labels, as well as checking the image for any explicit content using the label detection and safe search API.

The final output of the uploaded image and its contents will look like this:

A simple and powerful way to protect the content on our sites, without any administration. So, let's get started with the implementation.

Get Google Cloud AI Services Quick Start Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.