pub struct VerticalDetectOptions {
pub black_threshold: u8,
pub block_count: u32,
pub vertical_threshold: f64,
}Expand description
Options for vertical text detection
Fields§
§black_threshold: u8Threshold for considering a pixel as black (0-255) Pixels with value <= this threshold are considered black
block_count: u32Number of horizontal blocks to divide the image into Used to handle multi-column layouts
vertical_threshold: f64Minimum probability threshold for vertical writing (default: 0.5)
Implementations§
Source§impl VerticalDetectOptions
impl VerticalDetectOptions
Sourcepub fn for_binary() -> Self
pub fn for_binary() -> Self
Create options for high-contrast binary images
Sourcepub fn with_threshold(threshold: u8) -> Self
pub fn with_threshold(threshold: u8) -> Self
Create options with custom black threshold
Trait Implementations§
Source§impl Clone for VerticalDetectOptions
impl Clone for VerticalDetectOptions
Source§fn clone(&self) -> VerticalDetectOptions
fn clone(&self) -> VerticalDetectOptions
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 VerticalDetectOptions
impl Debug for VerticalDetectOptions
Auto Trait Implementations§
impl Freeze for VerticalDetectOptions
impl RefUnwindSafe for VerticalDetectOptions
impl Send for VerticalDetectOptions
impl Sync for VerticalDetectOptions
impl Unpin for VerticalDetectOptions
impl UnwindSafe for VerticalDetectOptions
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().