Detect Labels, Faces, and Landmarks in Images with the Cloud Vision API | Qwiklabs
The Cloud Vision API lets you understand the content of an image by encapsulating powerful machine learning models in a simple REST API.
In this lab, we will send images to the Vision API and see it detect objects, faces, and landmarks.
curl
Since you'll be using curl
to send a request to the Vision API, you'll need to generate an API key to pass in your request URL.
Now save it to an environment variable to avoid having to insert the value of your API key in each request.
Run the following in Cloud Shell, replacing <your_api_key>
with the key you just copied:
export API_KEY=<YOUR_API_KEY>