From the course: Deep Learning: Image Recognition

Unlock the full course today

Join today to access over 22,700 courses taught by industry experts or purchase this course individually.

Extracting text from images with Google Cloud Vision

Extracting text from images with Google Cloud Vision - Python Tutorial

From the course: Deep Learning: Image Recognition

Start my 1-month free trial

Extracting text from images with Google Cloud Vision

- Let's try using the cloud vision API to extract texts from an image. Before going any further, make sure you've created the Google cloud account and downloaded the credentials file. If you aren't sure how to do that you can review the previous video. Alright, let's open up cloud text recognition.py. This file uses the Google cloud vision API to upload an image and get back a response with all the texts that Google was able to extract from the image. On line seven, you can put in the name of the image that you want to check. I put in text.pmg. Let's take a look at that image. This is a scan of a page of dialogue from a play by Shakespeare. If the API works correctly, we should get back all this text as plain text. Alright, let's go back to the code. On line eight is the name of the credentials file that we want to use to access the cloud vision API. You should already have this file. If not, you can review the previous video. On line 11, we'll read this credentials file into an…

Contents