Cloud Video Intelligence V1 Client - Class VideoContext (1.12.16)

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

Video context and/or feature-specific parameters.

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

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ segments array<Google\Cloud\VideoIntelligence\V1\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\V1\LabelDetectionConfig

Config for LABEL_DETECTION.

↳ shot_change_detection_config Google\Cloud\VideoIntelligence\V1\ShotChangeDetectionConfig

Config for SHOT_CHANGE_DETECTION.

↳ explicit_content_detection_config Google\Cloud\VideoIntelligence\V1\ExplicitContentDetectionConfig

Config for EXPLICIT_CONTENT_DETECTION.

↳ face_detection_config Google\Cloud\VideoIntelligence\V1\FaceDetectionConfig

Config for FACE_DETECTION.

↳ speech_transcription_config Google\Cloud\VideoIntelligence\V1\SpeechTranscriptionConfig

Config for SPEECH_TRANSCRIPTION.

↳ text_detection_config Google\Cloud\VideoIntelligence\V1\TextDetectionConfig

Config for TEXT_DETECTION.

↳ person_detection_config Google\Cloud\VideoIntelligence\V1\PersonDetectionConfig

Config for PERSON_DETECTION.

↳ object_tracking_config Google\Cloud\VideoIntelligence\V1\ObjectTrackingConfig

Config for OBJECT_TRACKING.

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
TypeDescription
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
NameDescription
var array<Google\Cloud\VideoIntelligence\V1\VideoSegment>
Returns
TypeDescription
$this

getLabelDetectionConfig

Config for LABEL_DETECTION.

Returns
TypeDescription
Google\Cloud\VideoIntelligence\V1\LabelDetectionConfig|null

hasLabelDetectionConfig

clearLabelDetectionConfig

setLabelDetectionConfig

Config for LABEL_DETECTION.

Parameter
NameDescription
var Google\Cloud\VideoIntelligence\V1\LabelDetectionConfig
Returns
TypeDescription
$this

getShotChangeDetectionConfig

Config for SHOT_CHANGE_DETECTION.

Returns
TypeDescription
Google\Cloud\VideoIntelligence\V1\ShotChangeDetectionConfig|null

hasShotChangeDetectionConfig

clearShotChangeDetectionConfig

setShotChangeDetectionConfig

Config for SHOT_CHANGE_DETECTION.

Parameter
NameDescription
var Google\Cloud\VideoIntelligence\V1\ShotChangeDetectionConfig
Returns
TypeDescription
$this

getExplicitContentDetectionConfig

Config for EXPLICIT_CONTENT_DETECTION.

Returns
TypeDescription
Google\Cloud\VideoIntelligence\V1\ExplicitContentDetectionConfig|null

hasExplicitContentDetectionConfig

clearExplicitContentDetectionConfig

setExplicitContentDetectionConfig

Config for EXPLICIT_CONTENT_DETECTION.

Parameter
NameDescription
var Google\Cloud\VideoIntelligence\V1\ExplicitContentDetectionConfig
Returns
TypeDescription
$this

getFaceDetectionConfig

Config for FACE_DETECTION.

Returns
TypeDescription
Google\Cloud\VideoIntelligence\V1\FaceDetectionConfig|null

hasFaceDetectionConfig

clearFaceDetectionConfig

setFaceDetectionConfig

Config for FACE_DETECTION.

Parameter
NameDescription
var Google\Cloud\VideoIntelligence\V1\FaceDetectionConfig
Returns
TypeDescription
$this

getSpeechTranscriptionConfig

Config for SPEECH_TRANSCRIPTION.

Returns
TypeDescription
Google\Cloud\VideoIntelligence\V1\SpeechTranscriptionConfig|null

hasSpeechTranscriptionConfig

clearSpeechTranscriptionConfig

setSpeechTranscriptionConfig

Config for SPEECH_TRANSCRIPTION.

Parameter
NameDescription
var Google\Cloud\VideoIntelligence\V1\SpeechTranscriptionConfig
Returns
TypeDescription
$this

getTextDetectionConfig

Config for TEXT_DETECTION.

Returns
TypeDescription
Google\Cloud\VideoIntelligence\V1\TextDetectionConfig|null

hasTextDetectionConfig

clearTextDetectionConfig

setTextDetectionConfig

Config for TEXT_DETECTION.

Parameter
NameDescription
var Google\Cloud\VideoIntelligence\V1\TextDetectionConfig
Returns
TypeDescription
$this

getPersonDetectionConfig

Config for PERSON_DETECTION.

Returns
TypeDescription
Google\Cloud\VideoIntelligence\V1\PersonDetectionConfig|null

hasPersonDetectionConfig

clearPersonDetectionConfig

setPersonDetectionConfig

Config for PERSON_DETECTION.

Parameter
NameDescription
var Google\Cloud\VideoIntelligence\V1\PersonDetectionConfig
Returns
TypeDescription
$this

getObjectTrackingConfig

Config for OBJECT_TRACKING.

Returns
TypeDescription
Google\Cloud\VideoIntelligence\V1\ObjectTrackingConfig|null

hasObjectTrackingConfig

clearObjectTrackingConfig

setObjectTrackingConfig

Config for OBJECT_TRACKING.

Parameter
NameDescription
var Google\Cloud\VideoIntelligence\V1\ObjectTrackingConfig
Returns
TypeDescription
$this