Logo detection

Vision services also enable us to recognize the logo in an image by using the logo_detection method.

In the following code, you can see that we are able to detect the logo of wikipedia by passing the URL of the image's location, as follows:

response = client.logo_detection({'source' : {'image_uri':"https://upload.wikimedia.org/wikipedia/commons/thumb/b/b3/Wikipedia-logo-v2-en.svg/135px-Wikipedia-logo-v2-en.svg.png"},})

The output of the logo_detection method is as follows:

Get Hands-On Machine Learning on Google Cloud Platform now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.