pub struct OcrLine {
pub text: String,
pub rect: OcrRect,
pub confidence: Option<f32>,
}Expand description
One recognized line with its position on the image.
Fields§
§text: String§rect: OcrRect§confidence: Option<f32>0..1 where the backend reports it (Vision, ONNX). Windows.Media.Ocr
exposes none, so it is None there; None is not low confidence.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for OcrLine
impl<'de> Deserialize<'de> for OcrLine
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
impl StructuralPartialEq for OcrLine
Auto Trait Implementations§
impl Freeze for OcrLine
impl RefUnwindSafe for OcrLine
impl Send for OcrLine
impl Sync for OcrLine
impl Unpin for OcrLine
impl UnsafeUnpin for OcrLine
impl UnwindSafe for OcrLine
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