pub struct Code {
pub corners: [Point; 4],
pub size: i32,
pub cell_bitmap: [u8; 3917],
}
Expand description
This structure is used to return information about detected QR codes in the input image.
Fields§
§corners: [Point; 4]
The four corners of the QR-code, from top left, clockwise
size: i32
The number of cells across in the QR-code. The cell bitmap is a bitmask giving the actual values of cells. If the cell at (x, y) is black, then the following bit is set:
ⓘ
cell_bitmap[i >> 3] & (1 << (i & 7))
where i = (y * size) + x.
cell_bitmap: [u8; 3917]
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Code
impl Send for Code
impl Sync for Code
impl Unpin for Code
impl UnwindSafe for Code
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