Extract, Analyze, and Translate Text from Images with the Cloud ML APIs | Qwiklabs

In this lab, we'll explore the power of machine learning by using multiple machine learning APIs together. We'll start with the Cloud Vision API's text detection method to make use of Optical Character Recognition (OCR) to extract text from images. Then we'll learn how to translate that text with the Translation API and analyze it with the Natural Language API.

What you'll learn

What you'll need

Create an API Key

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. To create an API key, navigate to:

Navigation Menu > APIs & services > Credentials:

https://cdn.qwiklabs.com/%2BP6jLoRF1%2F5zohA4QDir1sG9WKEZPoya7uwopH2Kk00%3D

Click + Create Credentials.

In the drop down menu, select API key:

https://cdn.qwiklabs.com/cO1%2Fe9TXIdPC4AxJ6eSqF6%2BoOe3NrKJQXYFmANbI0wE%3D

Next, copy the key you just generated. Click Close.

Now save the API key to an environment variable to avoid having to insert the value of your API key in each request.