#[non_exhaustive]pub struct TextSegment {
pub segment: Option<VideoSegment>,
pub confidence: f32,
pub frames: Vec<TextFrame>,
/* private fields */
}Expand description
Video segment level annotation results for text detection.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.segment: Option<VideoSegment>Video segment where a text snippet was detected.
confidence: f32Confidence for the track of detected text. It is calculated as the highest over all frames where OCR detected text appears.
frames: Vec<TextFrame>Information related to the frames where OCR detected text appears.
Implementations§
Source§impl TextSegment
impl TextSegment
Sourcepub fn set_segment<T>(self, v: T) -> Selfwhere
T: Into<VideoSegment>,
pub fn set_segment<T>(self, v: T) -> Selfwhere
T: Into<VideoSegment>,
Sourcepub fn set_or_clear_segment<T>(self, v: Option<T>) -> Selfwhere
T: Into<VideoSegment>,
pub fn set_or_clear_segment<T>(self, v: Option<T>) -> Selfwhere
T: Into<VideoSegment>,
Sourcepub fn set_confidence<T: Into<f32>>(self, v: T) -> Self
pub fn set_confidence<T: Into<f32>>(self, v: T) -> Self
Sourcepub fn set_frames<T, V>(self, v: T) -> Self
pub fn set_frames<T, V>(self, v: T) -> Self
Trait Implementations§
Source§impl Clone for TextSegment
impl Clone for TextSegment
Source§fn clone(&self) -> TextSegment
fn clone(&self) -> TextSegment
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TextSegment
impl Debug for TextSegment
Source§impl Default for TextSegment
impl Default for TextSegment
Source§fn default() -> TextSegment
fn default() -> TextSegment
Returns the “default value” for a type. Read more
Source§impl Message for TextSegment
impl Message for TextSegment
Source§impl PartialEq for TextSegment
impl PartialEq for TextSegment
Source§fn eq(&self, other: &TextSegment) -> bool
fn eq(&self, other: &TextSegment) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TextSegment
Auto Trait Implementations§
impl Freeze for TextSegment
impl RefUnwindSafe for TextSegment
impl Send for TextSegment
impl Sync for TextSegment
impl Unpin for TextSegment
impl UnsafeUnpin for TextSegment
impl UnwindSafe for TextSegment
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