Cloud Video Intelligence V1 Client - Class FaceDetectionConfig (1.14.2)

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 \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
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
TypeDescription
string

setModel

Model to use for face detection.

Supported values: "builtin/stable" (the default if unset) and "builtin/latest".

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getIncludeBoundingBoxes

Whether bounding boxes are included in the face annotation output.

Returns
TypeDescription
bool

setIncludeBoundingBoxes

Whether bounding boxes are included in the face annotation output.

Parameter
NameDescription
var bool
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var bool
Returns
TypeDescription
$this