Struct gapi_grpc::google::cloud::videointelligence::v1p3beta1::LabelDetectionConfig [−][src]
Config for LABEL_DETECTION.
Fields
label_detection_mode: i32
What labels should be detected with LABEL_DETECTION, in addition to
video-level labels or segment-level labels.
If unspecified, defaults to SHOT_MODE
.
stationary_camera: 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.
model: String
Model to use for label detection. Supported values: “builtin/stable” (the default if unset) and “builtin/latest”.
frame_confidence_threshold: 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: 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.
Implementations
impl LabelDetectionConfig
[src][−]
pub fn label_detection_mode(&self) -> LabelDetectionMode
[src][−]
Returns the enum value of label_detection_mode
, or the default if the field is set to an invalid enum value.
pub fn set_label_detection_mode(&mut self, value: LabelDetectionMode)
[src][−]
Sets label_detection_mode
to the provided enum value.
Trait Implementations
impl Clone for LabelDetectionConfig
[src][+]
impl Debug for LabelDetectionConfig
[src][+]
impl Default for LabelDetectionConfig
[src][+]
impl Message for LabelDetectionConfig
[src][+]
impl PartialEq<LabelDetectionConfig> for LabelDetectionConfig
[src][+]
impl StructuralPartialEq for LabelDetectionConfig
[src]
Auto Trait Implementations
impl RefUnwindSafe for LabelDetectionConfig
impl Send for LabelDetectionConfig
impl Sync for LabelDetectionConfig
impl Unpin for LabelDetectionConfig
impl UnwindSafe for LabelDetectionConfig
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> From<T> for T
[src][+]
impl<T> Instrument for T
[src][+]
impl<T> Instrument for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T> IntoRequest<T> for T
[src][+]
impl<T> ToOwned for T where
T: Clone,
[src][+]
T: Clone,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src][+]
V: MultiLane<T>,