Cloud Video Intelligence V1beta2 Client - Class VideoContext (1.15.5)

Reference documentation and code samples for the Cloud Video Intelligence V1beta2 Client class VideoContext.

Video context and/or feature-specific parameters.

Generated from protobuf message google.cloud.videointelligence.v1beta2.VideoContext

Namespace

Google \ Cloud \ VideoIntelligence \ V1beta2

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ segments array<Google\Cloud\VideoIntelligence\V1beta2\VideoSegment>

Video segments to annotate. The segments may overlap and are not required to be contiguous or span the whole video. If unspecified, each video is treated as a single segment.

↳ label_detection_config Google\Cloud\VideoIntelligence\V1beta2\LabelDetectionConfig

Config for LABEL_DETECTION.

↳ shot_change_detection_config Google\Cloud\VideoIntelligence\V1beta2\ShotChangeDetectionConfig

Config for SHOT_CHANGE_DETECTION.

↳ explicit_content_detection_config Google\Cloud\VideoIntelligence\V1beta2\ExplicitContentDetectionConfig

Config for EXPLICIT_CONTENT_DETECTION.

↳ face_detection_config Google\Cloud\VideoIntelligence\V1beta2\FaceDetectionConfig

Config for FACE_DETECTION.

getSegments

Video segments to annotate. The segments may overlap and are not required to be contiguous or span the whole video. If unspecified, each video is treated as a single segment.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setSegments

Video segments to annotate. The segments may overlap and are not required to be contiguous or span the whole video. If unspecified, each video is treated as a single segment.

Parameter
Name Description
var array<Google\Cloud\VideoIntelligence\V1beta2\VideoSegment>
Returns
Type Description
$this

getLabelDetectionConfig

Config for LABEL_DETECTION.

Returns
Type Description
Google\Cloud\VideoIntelligence\V1beta2\LabelDetectionConfig|null

hasLabelDetectionConfig

clearLabelDetectionConfig

setLabelDetectionConfig

Config for LABEL_DETECTION.

Parameter
Name Description
var Google\Cloud\VideoIntelligence\V1beta2\LabelDetectionConfig
Returns
Type Description
$this

getShotChangeDetectionConfig

Config for SHOT_CHANGE_DETECTION.

Returns
Type Description
Google\Cloud\VideoIntelligence\V1beta2\ShotChangeDetectionConfig|null

hasShotChangeDetectionConfig

clearShotChangeDetectionConfig

setShotChangeDetectionConfig

Config for SHOT_CHANGE_DETECTION.

Parameter
Name Description
var Google\Cloud\VideoIntelligence\V1beta2\ShotChangeDetectionConfig
Returns
Type Description
$this

getExplicitContentDetectionConfig

Config for EXPLICIT_CONTENT_DETECTION.

Returns
Type Description
Google\Cloud\VideoIntelligence\V1beta2\ExplicitContentDetectionConfig|null

hasExplicitContentDetectionConfig

clearExplicitContentDetectionConfig

setExplicitContentDetectionConfig

Config for EXPLICIT_CONTENT_DETECTION.

Parameter
Name Description
var Google\Cloud\VideoIntelligence\V1beta2\ExplicitContentDetectionConfig
Returns
Type Description
$this

getFaceDetectionConfig

Config for FACE_DETECTION.

Returns
Type Description
Google\Cloud\VideoIntelligence\V1beta2\FaceDetectionConfig|null

hasFaceDetectionConfig

clearFaceDetectionConfig

setFaceDetectionConfig

Config for FACE_DETECTION.

Parameter
Name Description
var Google\Cloud\VideoIntelligence\V1beta2\FaceDetectionConfig
Returns
Type Description
$this