Skip to main content

Google Vision DetectLabels

Google Vision DetectLabels transformation allows users to automatically detect objects, scenes, and concepts within images.

Using machine learning algorithms, the DetectLabels API analyzes visual content and returns a list of labels with associated confidence scores. These labels can include things like a person, car, dog, mountain, beach, and many others.

This DetectLabels API is part of the Google Cloud Vision API, which provides a wide range of image analysis capabilities, including image labeling, face detection, optical character recognition (OCR), and more.

info

Installing the Google Vision add-on is a must for using this transformation.


Params

Maximum Labels (l)

This parameter is used to specify the maximum number of labels that should be returned in the API response.

Available values are from 0 to 10. The default value is 5.

If the number of labels detected in an image is greater than the specified max_results value, the API will only return the top max_results labels with the highest confidence scores.

For example, if l is set to 6 and Google Vision detects 10 labels in an image, it will return only the top 6 labels with the highest confidence scores.

Adjusting the l parameter can be useful in cases where you only need to retrieve the most relevant labels for your application or when you want to reduce the size of the API response.

note

Instead of getting the output in a traditional CDN URL, you will get a JSON output from the Context API while the CDN URL will return the original image without any modifications.

The Context API Response tab includes an array of labels, where each label is represented by a JSON object that contains the following information:

PropertyDescription
midThe mid stands for "machine identifier". When the response returns a mid parameter in the response, that corresponds to the knowledge graph mid associated with the label. This parameter can be used to retrieve additional information about the label from the knowledge graph, such as its description, properties, and relationships to other entities.
descriptionA string value that represents the name of the label detected in the image.
scoreA float value between 0 and 1 represents the level of confidence that the label is present in the image.
topicalityA float value between 0 and 1 represents the level of relevance of the label to the image.

Overall, the Context API Response provides information about the labels detected in the image, along with their confidence level, relevance, and associated properties. This information can be used for tasks such as image classification, object recognition, and content moderation.

To learn more about this transformation, click here.

Transform and enhance your images using our powerful AI technology. Organize your images in more efficient manner and our extensible APIs enables seamless integration with your system unleashing the power of our platform. Join the large community of users who use PixelBin to transform their image libraries and achieve excellent performance

Is this page useful?