pub struct OcrConfig {
pub dpi: u32,
pub text_threshold: usize,
pub pages: Vec<u32>,
}Expand description
Configuration for the OCR pipeline.
Fields§
§dpi: u32Resolution for rendering pages (dots per inch).
text_threshold: usizeMinimum character count in content stream to consider a page as already containing text.
pages: Vec<u32>Specific pages to process (empty = all pages).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OcrConfig
impl RefUnwindSafe for OcrConfig
impl Send for OcrConfig
impl Sync for OcrConfig
impl Unpin for OcrConfig
impl UnsafeUnpin for OcrConfig
impl UnwindSafe for OcrConfig
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 more