pub struct OcrBox {
pub text: String,
pub x1: f64,
pub y1: f64,
pub x2: f64,
pub y2: f64,
pub x3: f64,
pub y3: f64,
pub x4: f64,
pub y4: f64,
}Expand description
One recognized piece of text; corners run top-left, top-right, bottom-right, bottom-left, normalized 0–1 to the edited, orientation-corrected image.
Fields§
§text: String§x1: f64§y1: f64§x2: f64§y2: f64§x3: f64§y3: f64§x4: f64§y4: f64Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for OcrBox
impl<'de> Deserialize<'de> for OcrBox
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 OcrBox
Auto Trait Implementations§
impl Freeze for OcrBox
impl RefUnwindSafe for OcrBox
impl Send for OcrBox
impl Sync for OcrBox
impl Unpin for OcrBox
impl UnsafeUnpin for OcrBox
impl UnwindSafe for OcrBox
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more