Skip to content

Face Detection Activity

The Face Detection activity identifies multiple faces within an image. It also extracts associated key facial attributes for each detected face. This activity leverages Google Cloud Vision's robust face detection capabilities.

Field Description Requirement
Api key Google Cloud Vision API Key. Required
Image path/url Google Cloud Storage URL of the image. Provide either this field or Base64. Optional
Base64 Base64 string representation of the image file. Provide either this field or Image path/url. Optional
Response variable name The variable name to store the HTTP response from the API. Required

Action Types & Examples

Response Output

  • Format: JSON object
  • Example Result: {"faceAnnotations": [{"joyLikelihood": "VERY_LIKELY", "detectionConfidence": 0.98, "rollAngle": -1.2, "panAngle": 0.5, "tiltAngle": 2.1, "boundingPoly": {"vertices": [{"x": 10, "y": 20}, {"x": 50, "y": 20}, {"x": 50, "y": 70}, {"x": 10, "y": 70}]}}], "imagePropertiesAnnotation": {...}}

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=

Execution Parameters - Response variable name: getResponse

Technical Notes

For detailed information on Google Cloud Vision's face detection capabilities, refer to the official documentation. When configuring the activity, you must provide either the Image path/url or the Base64 field, but not both.