Label detection

In the previous code snippet, we used the face_detection method to fetch the various coordinates.

In order to understand the label of the image, we will be using the label_detection method in place of face_detection, as follows:

response_label = client.label_detection({'source' : {'image_uri': "gs://kish-
bucket/11.jpg"},})

The output of label detection is a collection of labels, along with the scores associated with each label.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.221.156.50