Skip to content

Image Properties Detection Activity

The Image Properties Detection activity identifies general attributes of an image, such as its dominant color. This activity leverages Google Cloud Vision's capabilities to analyze various image characteristics.

Field Description Requirement
Api key Google Cloud Vision API Key. Required
Image path/url Google Cloud Storage URL for the image. Either this or Base64 must be provided. Required
Base64 Base64 string representation of the image file. Either this or Image path/url must be provided. Required
Response variable name Variable name to store the HTTP response containing the detected image properties. Required

Action Types & Examples

Activity Result

  • Format: JSON string
  • Example Result: {"imagePropertiesAnnotation": {"dominantColors": [{"pixelFraction": 0.5, "color": {"red": 255, "green": 0, "blue": 0}}]}}

Implementation Examples

Field Setup - Api key: bb3c53c6-8515-4e34-97c8-8281de60972d - Image path/url: gs://cloud-samples-data/vision/ocr/sampleimage.jpg - Base64: /9j/4AAQSkZJRgABAQEAYABgAAD/2wBDAAMCAgMCAgMDAwMEAwMEBQgFBQQEBQoHBwYIDAoMDAsKCwsNDhIQDQ4RDgsLEBYQERMUFRUVDA8XGBYUGBIUFRT/2wBDAQMEBAUEBQkFBQkUDQsNFBQUF……………./58x/8BX+R/9k= - Response variable name: getResponse

Execution Parameters - Api key: bb3c53c6-8515-4e34-97c8-8281de60972d - Image path/url: gs://cloud-samples-data/vision/ocr/sampleimage.jpg - Response variable name: getResponse

Technical Notes

This activity integrates with Google Cloud Vision's detect image properties features. Refer to the official Google Cloud Vision documentation for detailed information: detect image properties.

When configuring the activity, either the Image path/url or the Base64 field must be provided. Providing both is not necessary.