pub struct TextOverlay {
pub text: String,
pub bounding_box: Option<[i32; 4]>,
pub overlay_type: Option<String>,
}Expand description
A detected text region in the image.
Fields§
§text: StringExtracted text content.
bounding_box: Option<[i32; 4]>Bounding box: [y_min, x_min, y_max, x_max] normalised to 0-1000.
overlay_type: Option<String>Overlay type: “gps”, “timestamp”, “address”, “label”, “other”.
Trait Implementations§
Source§impl Clone for TextOverlay
impl Clone for TextOverlay
Source§fn clone(&self) -> TextOverlay
fn clone(&self) -> TextOverlay
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 TextOverlay
impl Debug for TextOverlay
Source§impl Default for TextOverlay
impl Default for TextOverlay
Source§fn default() -> TextOverlay
fn default() -> TextOverlay
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TextOverlay
impl<'de> Deserialize<'de> for TextOverlay
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TextOverlay
impl RefUnwindSafe for TextOverlay
impl Send for TextOverlay
impl Sync for TextOverlay
impl Unpin for TextOverlay
impl UnsafeUnpin for TextOverlay
impl UnwindSafe for TextOverlay
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