#[non_exhaustive]pub enum RotatedTextMode {
Disabled,
DetectedOnly,
Robust,
}Expand description
Strategy for recognizing text whose baseline is rotated by 90 or 270 degrees.
This is independent of the optional document-orientation model. The latter rotates a whole page, while this mode handles mixed horizontal and vertical text regions in the same image.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Disabled
Keep the original single-pass OCR pipeline.
DetectedOnly
Re-orient tall regions already found by the normal detection pass.
Robust
Also detect on 90° and 270° copies to recover regions missed by the normal detection pass.
Trait Implementations§
Source§impl Clone for RotatedTextMode
impl Clone for RotatedTextMode
Source§fn clone(&self) -> RotatedTextMode
fn clone(&self) -> RotatedTextMode
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 moreimpl Copy for RotatedTextMode
Source§impl Debug for RotatedTextMode
impl Debug for RotatedTextMode
Source§impl Default for RotatedTextMode
impl Default for RotatedTextMode
Source§fn default() -> RotatedTextMode
fn default() -> RotatedTextMode
Returns the “default value” for a type. Read more
impl Eq for RotatedTextMode
Source§impl PartialEq for RotatedTextMode
impl PartialEq for RotatedTextMode
impl StructuralPartialEq for RotatedTextMode
Auto Trait Implementations§
impl Freeze for RotatedTextMode
impl RefUnwindSafe for RotatedTextMode
impl Send for RotatedTextMode
impl Sync for RotatedTextMode
impl Unpin for RotatedTextMode
impl UnsafeUnpin for RotatedTextMode
impl UnwindSafe for RotatedTextMode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().impl<T> Scalar for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.