Stay organized with collections
Save and categorize content based on your preferences.
The Video Intelligence API Face detection feature looks for faces in a video and returns:
The video segment,
or segments in which a face is detected, across all videos in the given request.
Optional: bounding boxes defining the area of the video frame in which
the face is detected. To enable this feature, set the
includeBoundingBoxes field in the FaceDetectionConfig to True.
Optional: the detected attributes of the face.
To enable attribute detection set the includeAttributes field within
FaceDetectionConfig
to True. (note: You must also setincludeBoundingBoxes to True). Also see
DetectedAttribute.
Possible boolean attributes:
Attribute
Description
headwear
The person is wearing a hat, cap, scarf and so on. Does not include small objects that hold the hair (e.g., hair pins).
frontal_gaze
Whether the person's eyes are looking directly into the camera as
opposed to simply have both eyes visible.
eyes_visible
The sclera (white of the eye) is visible for both eyes.
glasses
The person is wearing glasses on their face and over their eyes.
The glasses may be clear or colored.
Note: Worn in any other way (e.g., top of head, around the neck) the
glasses are ignored.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# Face detection\n\nThe Video Intelligence API **Face detection** feature looks for faces in a video and returns:\n\n- The ,\n or segments in which a face is detected, across all videos in the given request.\n\n- Optional: bounding boxes defining the area of the video frame in which\n the face is detected. To enable this feature, set the\n `includeBoundingBoxes` field in the [`FaceDetectionConfig`](/video-intelligence/docs/reference/rest/v1/videos/annotate#facedetectionconfig) to `True`.\n\n- Optional: the detected attributes of the face.\n To enable attribute detection set the `includeAttributes` field within\n [`FaceDetectionConfig`](/video-intelligence/docs/reference/rest/v1/videos/annotate#facedetectionconfig)\n to `True`. (note: You must also set`includeBoundingBoxes` to `True`). Also see\n [`DetectedAttribute`](/video-intelligence/docs/reference/rpc/google.cloud.videointelligence.v1#detectedattribute).\n\n Possible boolean attributes:\n\nFor an example, see\n[Face detection](/video-intelligence/docs/face-detection).\n\nVideo Intelligence API Visualizer\n=================================\n\nCheck out the [Video Intelligence API visualizer](https://zackakil.github.io/video-intelligence-api-visualiser/#Face%20Detection) to see this feature in action."]]