[][src]Struct google_videointelligence1::GoogleCloudVideointelligenceV1_LabelDetectionConfig

pub struct GoogleCloudVideointelligenceV1_LabelDetectionConfig {
    pub label_detection_mode: Option<String>,
    pub model: Option<String>,
    pub stationary_camera: Option<bool>,
    pub frame_confidence_threshold: Option<f32>,
    pub video_confidence_threshold: Option<f32>,
}

Config for LABEL_DETECTION.

This type is not used in any activity, and only used as part of another schema.

Fields

label_detection_mode: Option<String>

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: Option<String>

Model to use for label detection. Supported values: "builtin/stable" (the default if unset) and "builtin/latest".

stationary_camera: Option<bool>

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.

frame_confidence_threshold: Option<f32>

The confidence threshold we perform filtering on the labels from frame-level detection. If not set, it is set to 0.4 by default. The valid range for this threshold is [0.1, 0.9]. Any value set outside of this range will be clipped. Note: For best results, follow the default threshold. We will update the default threshold everytime when we release a new model.

video_confidence_threshold: Option<f32>

The confidence threshold we perform filtering on the labels from video-level and shot-level detections. If not set, it's set to 0.3 by default. The valid range for this threshold is [0.1, 0.9]. Any value set outside of this range will be clipped. Note: For best results, follow the default threshold. We will update the default threshold everytime when we release a new model.

Trait Implementations

impl Clone for GoogleCloudVideointelligenceV1_LabelDetectionConfig[src]

impl Debug for GoogleCloudVideointelligenceV1_LabelDetectionConfig[src]

impl Default for GoogleCloudVideointelligenceV1_LabelDetectionConfig[src]

impl<'de> Deserialize<'de> for GoogleCloudVideointelligenceV1_LabelDetectionConfig[src]

impl Part for GoogleCloudVideointelligenceV1_LabelDetectionConfig[src]

impl Serialize for GoogleCloudVideointelligenceV1_LabelDetectionConfig[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Typeable for T where
    T: Any