pub struct DetectionFilter {
pub min_bounding_box_height: Option<f32>,
pub min_bounding_box_width: Option<f32>,
pub min_confidence: Option<f32>,
}
Expand description
A set of parameters that allow you to filter out certain results from your returned results.
Fields§
§min_bounding_box_height: Option<f32>
Sets the minimum height of the word bounding box. Words with bounding box heights lesser than this value will be excluded from the result. Value is relative to the video frame height.
min_bounding_box_width: Option<f32>
Sets the minimum width of the word bounding box. Words with bounding boxes widths lesser than this value will be excluded from the result. Value is relative to the video frame width.
min_confidence: Option<f32>
Sets the confidence of word detection. Words with detection confidence below this will be excluded from the result. Values should be between 50 and 100 as Text in Video will not return any result below 50.
Trait Implementations§
Source§impl Clone for DetectionFilter
impl Clone for DetectionFilter
Source§fn clone(&self) -> DetectionFilter
fn clone(&self) -> DetectionFilter
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for DetectionFilter
impl Debug for DetectionFilter
Source§impl Default for DetectionFilter
impl Default for DetectionFilter
Source§fn default() -> DetectionFilter
fn default() -> DetectionFilter
Returns the “default value” for a type. Read more
Source§impl PartialEq for DetectionFilter
impl PartialEq for DetectionFilter
Source§impl Serialize for DetectionFilter
impl Serialize for DetectionFilter
impl StructuralPartialEq for DetectionFilter
Auto Trait Implementations§
impl Freeze for DetectionFilter
impl RefUnwindSafe for DetectionFilter
impl Send for DetectionFilter
impl Sync for DetectionFilter
impl Unpin for DetectionFilter
impl UnwindSafe for DetectionFilter
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more