VideoContext
class VideoContext extends Message
Video context and/or feature-specific parameters.
Protobuf type Google\Cloud\Videointelligence\V1beta1\VideoContext
Methods
No description
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.
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.
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
.
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
.
Whether the video has been shot from a stationary (i.e. non-moving) camera.
Whether the video has been shot from a stationary (i.e. non-moving) camera.
Model to use for label detection.
Model to use for label detection.
Model to use for face detection.
Model to use for face detection.
Model to use for shot change detection.
Model to use for shot change detection.
Model to use for safe search detection.
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;