class VideoContext extends Message

Video context and/or feature-specific parameters.

Protobuf type Google\Cloud\Videointelligence\V1beta1\VideoContext

Methods

__construct()

No description

RepeatedField
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.

setSegments(array|RepeatedField $var)

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.

int
getLabelDetectionMode()

If label detection has been requested, what labels should be detected in addition to video-level labels or segment-level labels. If unspecified, defaults to SHOT_MODE.

setLabelDetectionMode(int $var)

If label detection has been requested, what labels should be detected in addition to video-level labels or segment-level labels. If unspecified, defaults to SHOT_MODE.

bool
getStationaryCamera()

Whether the video has been shot from a stationary (i.e. non-moving) camera.

setStationaryCamera(bool $var)

Whether the video has been shot from a stationary (i.e. non-moving) camera.

string
getLabelDetectionModel()

Model to use for label detection.

setLabelDetectionModel(string $var)

Model to use for label detection.

string
getFaceDetectionModel()

Model to use for face detection.

setFaceDetectionModel(string $var)

Model to use for face detection.

string
getShotChangeDetectionModel()

Model to use for shot change detection.

setShotChangeDetectionModel(string $var)

Model to use for shot change detection.

string
getSafeSearchDetectionModel()

Model to use for safe search detection.

setSafeSearchDetectionModel(string $var)

Model to use for safe search detection.

Details

at line 70
__construct()

at line 83
RepeatedField 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.

Generated from protobuf field repeated .google.cloud.videointelligence.v1beta1.VideoSegment segments = 1;

Return Value

RepeatedField

at line 96
setSegments(array|RepeatedField $var)

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.

Generated from protobuf field repeated .google.cloud.videointelligence.v1beta1.VideoSegment segments = 1;

Parameters

array|RepeatedField $var

at line 110
int getLabelDetectionMode()

If label detection has been requested, what labels should be detected in addition to video-level labels or segment-level labels. If unspecified, defaults to SHOT_MODE.

Generated from protobuf field .google.cloud.videointelligence.v1beta1.LabelDetectionMode label_detection_mode = 2;

Return Value

int

at line 123
setLabelDetectionMode(int $var)

If label detection has been requested, what labels should be detected in addition to video-level labels or segment-level labels. If unspecified, defaults to SHOT_MODE.

Generated from protobuf field .google.cloud.videointelligence.v1beta1.LabelDetectionMode label_detection_mode = 2;

Parameters

int $var

at line 136
bool getStationaryCamera()

Whether the video has been shot from a stationary (i.e. non-moving) camera.

When set to true, might improve detection accuracy for moving objects.

Generated from protobuf field bool stationary_camera = 3;

Return Value

bool

at line 148
setStationaryCamera(bool $var)

Whether the video has been shot from a stationary (i.e. non-moving) camera.

When set to true, might improve detection accuracy for moving objects.

Generated from protobuf field bool stationary_camera = 3;

Parameters

bool $var

at line 161
string getLabelDetectionModel()

Model to use for label detection.

Supported values: "latest" and "stable" (the default).

Generated from protobuf field string label_detection_model = 4;

Return Value

string

at line 173
setLabelDetectionModel(string $var)

Model to use for label detection.

Supported values: "latest" and "stable" (the default).

Generated from protobuf field string label_detection_model = 4;

Parameters

string $var

at line 186
string getFaceDetectionModel()

Model to use for face detection.

Supported values: "latest" and "stable" (the default).

Generated from protobuf field string face_detection_model = 5;

Return Value

string

at line 198
setFaceDetectionModel(string $var)

Model to use for face detection.

Supported values: "latest" and "stable" (the default).

Generated from protobuf field string face_detection_model = 5;

Parameters

string $var

at line 211
string getShotChangeDetectionModel()

Model to use for shot change detection.

Supported values: "latest" and "stable" (the default).

Generated from protobuf field string shot_change_detection_model = 6;

Return Value

string

at line 223
setShotChangeDetectionModel(string $var)

Model to use for shot change detection.

Supported values: "latest" and "stable" (the default).

Generated from protobuf field string shot_change_detection_model = 6;

Parameters

string $var

at line 236
string getSafeSearchDetectionModel()

Model to use for safe search detection.

Supported values: "latest" and "stable" (the default).

Generated from protobuf field string safe_search_detection_model = 7;

Return Value

string

at line 248
setSafeSearchDetectionModel(string $var)

Model to use for safe search detection.

Supported values: "latest" and "stable" (the default).

Generated from protobuf field string safe_search_detection_model = 7;

Parameters

string $var