[−][src]Crate rqrr
Find and read QR-Codes
This crates exports functions and types that can be used to search for QR-Codes in images and decode them.
Usage
The most basic usage is shown below:
use image; use rqrr; let img = image::open("tests/data/github.gif").unwrap(); let codes = rqrr::find_and_decode_from_image(&img); assert_eq!(codes.len(), 1); assert_eq!(codes[0].val, "https://github.com/WanzenBug/rqrr");
If you have some other form of picture storage, you can use find_and_decode_from_func
.
This allows you define your own source for images.
Structs
CapStone | A locator pattern of a QR grid |
Code | The decoded content of a QR-Code |
MetaData | MetaData for a QR grid |
Point | A simple point in (some) space |
SearchableImage | An black-and-white image that can be mutated on search for QR codes |
SimpleGrid | A basic GridImage that can be generated from a given function. |
SkewedGridLocation | Location of a skewed square in an image |
Version | Version of a QR Code which determines its size |
Enums
DeQRError | Possible errors that can happen during decoding |
Traits
Grid | A grid that contains exactly one QR code square. |
Functions
capstones_from_image | Find all 'capstones' in a given image. |
decode | Given a grid try to decode and write it to the output writer |
find_and_decode_from_func | Find QR-Codes and decode them |
find_and_decode_from_image | Given a image object, locate all codes found in it |
find_groupings | Find CapStones that form a grid |
Type Definitions
DeQRResult |