Reference documentation and code samples for the Cloud Video Intelligence V1 Client class PersonDetectionConfig.
Config for PERSON_DETECTION.
Generated from protobuf messagegoogle.cloud.videointelligence.v1.PersonDetectionConfig
Namespace
Google \ Cloud \ VideoIntelligence \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ include_bounding_boxes
bool
Whether bounding boxes are included in the person detection annotation output.
↳ include_pose_landmarks
bool
Whether to enable pose landmarks detection. Ignored if 'include_bounding_boxes' is set to false.
↳ include_attributes
bool
Whether to enable person attributes detection, such as cloth color (black, blue, etc), type (coat, dress, etc), pattern (plain, floral, etc), hair, etc. Ignored if 'include_bounding_boxes' is set to false.
getIncludeBoundingBoxes
Whether bounding boxes are included in the person detection annotation
output.
Returns
Type
Description
bool
setIncludeBoundingBoxes
Whether bounding boxes are included in the person detection annotation
output.
Parameter
Name
Description
var
bool
Returns
Type
Description
$this
getIncludePoseLandmarks
Whether to enable pose landmarks detection. Ignored if
'include_bounding_boxes' is set to false.
Returns
Type
Description
bool
setIncludePoseLandmarks
Whether to enable pose landmarks detection. Ignored if
'include_bounding_boxes' is set to false.
Parameter
Name
Description
var
bool
Returns
Type
Description
$this
getIncludeAttributes
Whether to enable person attributes detection, such as cloth color (black,
blue, etc), type (coat, dress, etc), pattern (plain, floral, etc), hair,
etc.
Ignored if 'include_bounding_boxes' is set to false.
Returns
Type
Description
bool
setIncludeAttributes
Whether to enable person attributes detection, such as cloth color (black,
blue, etc), type (coat, dress, etc), pattern (plain, floral, etc), hair,
etc.
Ignored if 'include_bounding_boxes' is set to false.
[[["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-09-04 UTC."],[],[],null,["# Cloud Video Intelligence V1 Client - Class PersonDetectionConfig (2.0.5)\n\nVersion latestkeyboard_arrow_down\n\n- [2.0.5 (latest)](/php/docs/reference/cloud-videointelligence/latest/V1.PersonDetectionConfig)\n- [2.0.4](/php/docs/reference/cloud-videointelligence/2.0.4/V1.PersonDetectionConfig)\n- [1.15.5](/php/docs/reference/cloud-videointelligence/1.15.5/V1.PersonDetectionConfig)\n- [1.14.2](/php/docs/reference/cloud-videointelligence/1.14.2/V1.PersonDetectionConfig)\n- [1.13.1](/php/docs/reference/cloud-videointelligence/1.13.1/V1.PersonDetectionConfig)\n- [1.12.16](/php/docs/reference/cloud-videointelligence/1.12.16/V1.PersonDetectionConfig) \nReference documentation and code samples for the Cloud Video Intelligence V1 Client class PersonDetectionConfig.\n\nConfig for PERSON_DETECTION.\n\nGenerated from protobuf message `google.cloud.videointelligence.v1.PersonDetectionConfig`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ VideoIntelligence \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getIncludeBoundingBoxes\n\nWhether bounding boxes are included in the person detection annotation\noutput.\n\n### setIncludeBoundingBoxes\n\nWhether bounding boxes are included in the person detection annotation\noutput.\n\n### getIncludePoseLandmarks\n\nWhether to enable pose landmarks detection. Ignored if\n'include_bounding_boxes' is set to false.\n\n### setIncludePoseLandmarks\n\nWhether to enable pose landmarks detection. Ignored if\n'include_bounding_boxes' is set to false.\n\n### getIncludeAttributes\n\nWhether to enable person attributes detection, such as cloth color (black,\nblue, etc), type (coat, dress, etc), pattern (plain, floral, etc), hair,\netc.\n\nIgnored if 'include_bounding_boxes' is set to false.\n\n### setIncludeAttributes\n\nWhether to enable person attributes detection, such as cloth color (black,\nblue, etc), type (coat, dress, etc), pattern (plain, floral, etc), hair,\netc.\n\nIgnored if 'include_bounding_boxes' is set to false."]]