pub struct OcrBlock {
pub text: String,
pub x: i32,
pub y: i32,
pub width: u32,
pub height: u32,
pub confidence: f32,
}Expand description
One recognized text line with image-pixel coordinates.
Fields§
§text: StringRecognized text. Never logged (see crate::audit).
x: i32Top-left in image pixels.
y: i32Top-left in image pixels.
width: u32Width in image pixels.
height: u32Height in image pixels.
confidence: f32Confidence in [0, 1]. Vision returns 0 when the engine cannot say.
Trait Implementations§
impl StructuralPartialEq for OcrBlock
Auto Trait Implementations§
impl Freeze for OcrBlock
impl RefUnwindSafe for OcrBlock
impl Send for OcrBlock
impl Sync for OcrBlock
impl Unpin for OcrBlock
impl UnsafeUnpin for OcrBlock
impl UnwindSafe for OcrBlock
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