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
Namespace
Google \ Cloud \ VideoIntelligence \ V1Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ segments |
array<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 |
LabelDetectionConfig
Config for LABEL_DETECTION. |
↳ shot_change_detection_config |
ShotChangeDetectionConfig
Config for SHOT_CHANGE_DETECTION. |
↳ explicit_content_detection_config |
ExplicitContentDetectionConfig
Config for EXPLICIT_CONTENT_DETECTION. |
↳ face_detection_config |
FaceDetectionConfig
Config for FACE_DETECTION. |
↳ speech_transcription_config |
SpeechTranscriptionConfig
Config for SPEECH_TRANSCRIPTION. |
↳ text_detection_config |
TextDetectionConfig
Config for TEXT_DETECTION. |
↳ person_detection_config |
PersonDetectionConfig
Config for PERSON_DETECTION. |
↳ object_tracking_config |
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 | |
---|---|
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<VideoSegment>
|
Returns | |
---|---|
Type | Description |
$this |
getLabelDetectionConfig
Config for LABEL_DETECTION.
Returns | |
---|---|
Type | Description |
LabelDetectionConfig|null |
hasLabelDetectionConfig
clearLabelDetectionConfig
setLabelDetectionConfig
Config for LABEL_DETECTION.
Parameter | |
---|---|
Name | Description |
var |
LabelDetectionConfig
|
Returns | |
---|---|
Type | Description |
$this |
getShotChangeDetectionConfig
Config for SHOT_CHANGE_DETECTION.
Returns | |
---|---|
Type | Description |
ShotChangeDetectionConfig|null |
hasShotChangeDetectionConfig
clearShotChangeDetectionConfig
setShotChangeDetectionConfig
Config for SHOT_CHANGE_DETECTION.
Parameter | |
---|---|
Name | Description |
var |
ShotChangeDetectionConfig
|
Returns | |
---|---|
Type | Description |
$this |
getExplicitContentDetectionConfig
Config for EXPLICIT_CONTENT_DETECTION.
Returns | |
---|---|
Type | Description |
ExplicitContentDetectionConfig|null |
hasExplicitContentDetectionConfig
clearExplicitContentDetectionConfig
setExplicitContentDetectionConfig
Config for EXPLICIT_CONTENT_DETECTION.
Parameter | |
---|---|
Name | Description |
var |
ExplicitContentDetectionConfig
|
Returns | |
---|---|
Type | Description |
$this |
getFaceDetectionConfig
Config for FACE_DETECTION.
Returns | |
---|---|
Type | Description |
FaceDetectionConfig|null |
hasFaceDetectionConfig
clearFaceDetectionConfig
setFaceDetectionConfig
Config for FACE_DETECTION.
Parameter | |
---|---|
Name | Description |
var |
FaceDetectionConfig
|
Returns | |
---|---|
Type | Description |
$this |
getSpeechTranscriptionConfig
Config for SPEECH_TRANSCRIPTION.
Returns | |
---|---|
Type | Description |
SpeechTranscriptionConfig|null |
hasSpeechTranscriptionConfig
clearSpeechTranscriptionConfig
setSpeechTranscriptionConfig
Config for SPEECH_TRANSCRIPTION.
Parameter | |
---|---|
Name | Description |
var |
SpeechTranscriptionConfig
|
Returns | |
---|---|
Type | Description |
$this |
getTextDetectionConfig
Config for TEXT_DETECTION.
Returns | |
---|---|
Type | Description |
TextDetectionConfig|null |
hasTextDetectionConfig
clearTextDetectionConfig
setTextDetectionConfig
Config for TEXT_DETECTION.
Parameter | |
---|---|
Name | Description |
var |
TextDetectionConfig
|
Returns | |
---|---|
Type | Description |
$this |
getPersonDetectionConfig
Config for PERSON_DETECTION.
Returns | |
---|---|
Type | Description |
PersonDetectionConfig|null |
hasPersonDetectionConfig
clearPersonDetectionConfig
setPersonDetectionConfig
Config for PERSON_DETECTION.
Parameter | |
---|---|
Name | Description |
var |
PersonDetectionConfig
|
Returns | |
---|---|
Type | Description |
$this |
getObjectTrackingConfig
Config for OBJECT_TRACKING.
Returns | |
---|---|
Type | Description |
ObjectTrackingConfig|null |
hasObjectTrackingConfig
clearObjectTrackingConfig
setObjectTrackingConfig
Config for OBJECT_TRACKING.
Parameter | |
---|---|
Name | Description |
var |
ObjectTrackingConfig
|
Returns | |
---|---|
Type | Description |
$this |