# Cloud Video Intelligence V1p1beta1 API - Class Google::Cloud::VideoIntelligence::V1p1beta1::LabelDetectionConfig (v0.17.0)

0.17.0 (latest) 0.16.0 0.15.1 0.14.0 0.13.0 0.12.1 0.11.0 0.10.2 0.9.2 0.8.0 0.7.1 0.6.0 0.5.0 0.4.5 Reference documentation and code samples for the Cloud Video Intelligence V1p1beta1 API class Google::Cloud::VideoIntelligence::V1p1beta1::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::V1p1beta1::LabelDetectionMode

**Returns**

- ([::Google::Cloud::VideoIntelligence::V1p1beta1::LabelDetectionMode](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video_intelligence-v1p1beta1/latest/Google-Cloud-VideoIntelligence-V1p1beta1-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::V1p1beta1::LabelDetectionMode

**Parameter**

- **value** ([::Google::Cloud::VideoIntelligence::V1p1beta1::LabelDetectionMode](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video_intelligence-v1p1beta1/latest/Google-Cloud-VideoIntelligence-V1p1beta1-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::V1p1beta1::LabelDetectionMode](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video_intelligence-v1p1beta1/latest/Google-Cloud-VideoIntelligence-V1p1beta1-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_MODE` enabled.

### #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_MODE` enabled.
**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_MODE` enabled.