pub struct OcrOptions {
pub max_recognition_line_count: i32,
pub resize_resolution: Resolution,
pub include_word_level_details: bool,
}
Expand description
Configuration for OCR processing behavior.
Fields§
§max_recognition_line_count: i32
The maximum number of lines that can be recognized. Default is 100, range is 0-1000.
resize_resolution: Resolution
The maximum internal resize resolution (width, height).
The resize resolution
defines the maximum dimensions to which an image will be automatically scaled internally before OCR processing.
It’s a performance and accuracy trade-off rather than a restriction on the original image’s resolution.
The default and maximum resolution is (1152, 768).
include_word_level_details: bool
Whether to include word-level details in the result.
If true
, the result will contain bounding boxes and confidence scores for individual words.
If false
, only line-level information will be available.
Trait Implementations§
Source§impl Clone for OcrOptions
impl Clone for OcrOptions
Source§fn clone(&self) -> OcrOptions
fn clone(&self) -> OcrOptions
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 OcrOptions
impl Debug for OcrOptions
Source§impl Default for OcrOptions
impl Default for OcrOptions
Source§impl Hash for OcrOptions
impl Hash for OcrOptions
Source§impl PartialEq for OcrOptions
impl PartialEq for OcrOptions
impl Eq for OcrOptions
impl StructuralPartialEq for OcrOptions
Auto Trait Implementations§
impl Freeze for OcrOptions
impl RefUnwindSafe for OcrOptions
impl Send for OcrOptions
impl Sync for OcrOptions
impl Unpin for OcrOptions
impl UnwindSafe for OcrOptions
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()
.