Reference documentation and code samples for the Cloud Video Intelligence V1beta2 API class Google::Cloud::VideoIntelligence::V1beta2::LabelDetectionConfig.
Config for LABEL_DETECTION.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#label_detection_mode
def label_detection_mode() -> ::Google::Cloud::VideoIntelligence::V1beta2::LabelDetectionMode Returns
- (::Google::Cloud::VideoIntelligence::V1beta2::LabelDetectionMode) — What labels should be detected with LABEL_DETECTION, in addition to video-level labels or segment-level labels. If unspecified, defaults to
SHOT_MODE.
#label_detection_mode=
def label_detection_mode=(value) -> ::Google::Cloud::VideoIntelligence::V1beta2::LabelDetectionMode Parameter
- value (::Google::Cloud::VideoIntelligence::V1beta2::LabelDetectionMode) — What labels should be detected with LABEL_DETECTION, in addition to video-level labels or segment-level labels. If unspecified, defaults to
SHOT_MODE.
Returns
- (::Google::Cloud::VideoIntelligence::V1beta2::LabelDetectionMode) — What labels should be detected with LABEL_DETECTION, in addition to video-level labels or segment-level labels. If unspecified, defaults to
SHOT_MODE.
#model
def model() -> ::String Returns
- (::String) — Model to use for label detection. Supported values: "builtin/stable" (the default if unset) and "builtin/latest".
#model=
def model=(value) -> ::String Parameter
- value (::String) — Model to use for label detection. Supported values: "builtin/stable" (the default if unset) and "builtin/latest".
Returns
- (::String) — Model to use for label detection. Supported values: "builtin/stable" (the default if unset) and "builtin/latest".
#stationary_camera
def stationary_camera() -> ::Boolean Returns
- (::Boolean) — 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. Should be used with
SHOT_AND_FRAME_MODEenabled.
#stationary_camera=
def stationary_camera=(value) -> ::Boolean Parameter
- value (::Boolean) — 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. Should be used with
SHOT_AND_FRAME_MODEenabled.
Returns
- (::Boolean) — 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. Should be used with
SHOT_AND_FRAME_MODEenabled.