pub struct QRExtractor {}Expand description
Extract QR Data from a preprocessed image
If the version of the QR is higher than 1, this extractor will first try to find the bottom left-most alignment pattern and adjust for any perspective skewing.
Data is extracted by sampling the center pixel of the estimated module locations. These are determined by dividing each row and column into equal parts.
Implementations§
Source§impl QRExtractor
impl QRExtractor
Sourcepub fn new() -> QRExtractor
pub fn new() -> QRExtractor
Construct a new QRExtractor
Trait Implementations§
Source§impl Extract<ImageBuffer<Luma<u8>, Vec<u8>>, QRLocation, QRData, QRError> for QRExtractor
impl Extract<ImageBuffer<Luma<u8>, Vec<u8>>, QRLocation, QRData, QRError> for QRExtractor
Auto Trait Implementations§
impl Freeze for QRExtractor
impl RefUnwindSafe for QRExtractor
impl Send for QRExtractor
impl Sync for QRExtractor
impl Unpin for QRExtractor
impl UnwindSafe for QRExtractor
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> 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