| Crates.io | rqrr |
| lib.rs | rqrr |
| version | 0.10.0 |
| created_at | 2019-05-03 15:08:16.522957+00 |
| updated_at | 2025-07-27 12:25:59.146354+00 |
| description | Detect and read QR codes from any image source |
| homepage | |
| repository | https://github.com/WanzenBug/rqrr |
| max_upload_size | |
| id | 131757 |
| size | 162,797 |
This crates exports functions and types that can be used to search for QR-Codes in images and decode them.
The most basic usage is shown below:
use image;
use rqrr;
let img = image::open("tests/data/github.gif")?.to_luma();
// Prepare for detection
let mut img = rqrr::PreparedImage::prepare(img);
// Search for grids, without decoding
let grids = img.detect_grids();
assert_eq!(grids.len(), 1);
// Decode the grid
let (meta, content) = grids[0].decode()?;
assert_eq!(meta.ecc_level, 0);
assert_eq!(content, "https://github.com/WanzenBug/rqrr");
For more information visit docs.rs
This library was made on the base of quirc