Audience
The goal of this tutorial is to help you develop applications using the Vision API Web detection feature. It assumes you are familiar with basic programming constructs and techniques, but even if you are a beginning programmer, you should be able to follow along and run this tutorial without difficulty, then use the Vision API reference documentation to create basic applications.
This tutorial steps through a Vision API application, showing you how to make a call to the Vision API to use its Web detection feature.
Prerequisites
- Set up a Vision API project in the Google Cloud console.
Set up your environment for using Application Default Credentials.
Python
- Install Python.
- Install pip.
- Install the Google Cloud Client Library.
Overview
This tutorial walks you through a basic Vision API application that uses a
Web detection request. A Web detection response annotates the image
sent in the request with:
- labels obtained from the Web
- site URLs that have matching images
- URLs to Web images that partially or fully match the image in the request
- URLs to visually similar images
Code listing
As you read the code, we recommend that you follow along by referring to the Vision API Python reference.