pub enum PageSegmentationMode {
Show 14 variants
OsdOnly = 0,
AutoOsd = 1,
AutoOnly = 2,
Auto = 3,
SingleColumn = 4,
SingleBlockVertText = 5,
SingleBlock = 6,
SingleLine = 7,
SingleWord = 8,
CircleWord = 9,
SingleChar = 10,
SparseText = 11,
SparseTextOsd = 12,
RawLine = 13,
}Expand description
Page layout analysis modes.
Variants§
OsdOnly = 0
Orientation and script detection only.
AutoOsd = 1
Automatic page segmentation with orientation and script detection (OSD).
AutoOnly = 2
Automatic page segmentation, but no OSD, or OCR.
Auto = 3
Fully automatic page segmentation, but no OSD.
SingleColumn = 4
Assume a single column of text of variable sizes.
SingleBlockVertText = 5
Assume a single uniform block of vertically aligned text.
SingleBlock = 6
Assume a single uniform block of text (default).
SingleLine = 7
Treat the image as a single text line.
SingleWord = 8
Treat the image as a single word.
CircleWord = 9
Treat the image as a single word in a circle.
SingleChar = 10
Treat the image as a single character.
SparseText = 11
Find as much text as possible in no particular order.
SparseTextOsd = 12
Sparse text with orientation and script det.
RawLine = 13
Treat the image as a single text line, bypassing hacks that are Tesseract-specific.
Trait Implementations§
Source§impl Clone for PageSegmentationMode
impl Clone for PageSegmentationMode
Source§fn clone(&self) -> PageSegmentationMode
fn clone(&self) -> PageSegmentationMode
Returns a duplicate of the value. Read more
1.0.0 · 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 PageSegmentationMode
impl Debug for PageSegmentationMode
Source§impl Default for PageSegmentationMode
impl Default for PageSegmentationMode
Source§impl Hash for PageSegmentationMode
impl Hash for PageSegmentationMode
Source§impl Ord for PageSegmentationMode
impl Ord for PageSegmentationMode
Source§fn cmp(&self, other: &PageSegmentationMode) -> Ordering
fn cmp(&self, other: &PageSegmentationMode) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for PageSegmentationMode
impl PartialEq for PageSegmentationMode
Source§impl PartialOrd for PageSegmentationMode
impl PartialOrd for PageSegmentationMode
impl Copy for PageSegmentationMode
impl Eq for PageSegmentationMode
impl StructuralPartialEq for PageSegmentationMode
Auto Trait Implementations§
impl Freeze for PageSegmentationMode
impl RefUnwindSafe for PageSegmentationMode
impl Send for PageSegmentationMode
impl Sync for PageSegmentationMode
impl Unpin for PageSegmentationMode
impl UnsafeUnpin for PageSegmentationMode
impl UnwindSafe for PageSegmentationMode
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