From the course: Deep Learning: Image Recognition

Unlock the full course today

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

Recognizing objects in photographs with Google Cloud Vision

Recognizing objects in photographs with Google Cloud Vision - Python Tutorial

From the course: Deep Learning: Image Recognition

Start my 1-month free trial

Recognizing objects in photographs with Google Cloud Vision

- [Instructor] Alright, let's use the Cloud Vision API for image recognition. 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_image_recognition.py. This file uses the Google Cloud API to upload a file and get back a response from Google with a list of objects detected in the image. On line seven, you can put in the name of the image file that you wanna check. I've included the sample image to test with, so you can leave this as road_sign.jpg for now. Let's take a look at the picture. This is a picture of a road sign on the highway. If the API works correctly, it should come up with labels like road and sign. Alright, let's go back to the code. On line eight is the name of the credentials file that we wanna use to access the Cloud Vision API. You should already have a credentials.json file. If not, you can review the…

Contents