Reference documentation and code samples for the Cloud Video Intelligence V1 Client class FaceDetectionConfig.
Config for FACE_DETECTION.
Generated from protobuf message google.cloud.videointelligence.v1.FaceDetectionConfig
Namespace
Google \ Cloud \ VideoIntelligence \ V1Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ model |
string
Model to use for face detection. Supported values: "builtin/stable" (the default if unset) and "builtin/latest". |
↳ include_bounding_boxes |
bool
Whether bounding boxes are included in the face annotation output. |
↳ include_attributes |
bool
Whether to enable face attributes detection, such as glasses, dark_glasses, mouth_open etc. Ignored if 'include_bounding_boxes' is set to false. |
getModel
Model to use for face detection.
Supported values: "builtin/stable" (the default if unset) and "builtin/latest".
Returns | |
---|---|
Type | Description |
string |
setModel
Model to use for face detection.
Supported values: "builtin/stable" (the default if unset) and "builtin/latest".
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getIncludeBoundingBoxes
Whether bounding boxes are included in the face annotation output.
Returns | |
---|---|
Type | Description |
bool |
setIncludeBoundingBoxes
Whether bounding boxes are included in the face annotation output.
Parameter | |
---|---|
Name | Description |
var |
bool
|
Returns | |
---|---|
Type | Description |
$this |
getIncludeAttributes
Whether to enable face attributes detection, such as glasses, dark_glasses, mouth_open etc. Ignored if 'include_bounding_boxes' is set to false.
Returns | |
---|---|
Type | Description |
bool |
setIncludeAttributes
Whether to enable face attributes detection, such as glasses, dark_glasses, mouth_open etc. Ignored if 'include_bounding_boxes' is set to false.
Parameter | |
---|---|
Name | Description |
var |
bool
|
Returns | |
---|---|
Type | Description |
$this |