pub struct OcrPreprocessing {
pub dpi: Option<u32>,
pub binarized: bool,
pub deskewed: bool,
pub denoised: bool,
pub psm: Option<u32>,
pub oem: Option<u32>,
}Expand description
Preprocessing parameters applied before OCR.
Fields§
§dpi: Option<u32>DPI used for rendering (for PDFs).
binarized: boolWhether binarization was applied.
deskewed: boolWhether deskewing was applied.
denoised: boolWhether noise removal was applied.
psm: Option<u32>Page segmentation mode (Tesseract-specific).
oem: Option<u32>OCR engine mode (Tesseract-specific).
Trait Implementations§
Source§impl Clone for OcrPreprocessing
impl Clone for OcrPreprocessing
Source§fn clone(&self) -> OcrPreprocessing
fn clone(&self) -> OcrPreprocessing
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 OcrPreprocessing
impl Debug for OcrPreprocessing
Source§impl Default for OcrPreprocessing
impl Default for OcrPreprocessing
Source§fn default() -> OcrPreprocessing
fn default() -> OcrPreprocessing
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for OcrPreprocessing
impl<'de> Deserialize<'de> for OcrPreprocessing
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
Auto Trait Implementations§
impl Freeze for OcrPreprocessing
impl RefUnwindSafe for OcrPreprocessing
impl Send for OcrPreprocessing
impl Sync for OcrPreprocessing
impl Unpin for OcrPreprocessing
impl UnsafeUnpin for OcrPreprocessing
impl UnwindSafe for OcrPreprocessing
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