Landmark detection

Note that, in the preceding lines of code, we have specified the URL of the image location in the logo_detection method, and it resulted in a description of the predicted logo, and also the confidence score associated with it.

Similarly, any landmark located in an image can be detected by using the landmark_detection method, as follows:

response = client.landmark_detection({'source' : {'image_uri':  "https://upload.wikimedia.org/wikipedia/commons/thumb/1/1d/  Taj_Mahal_%28Edited%29.jpeg/250px-Taj_Mahal_%28Edited%29.jpeg"},})

The output of the landmark_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.