15 releases

0.7.1 Mar 14, 2024
0.6.0 Jan 3, 2023
0.5.2 Oct 3, 2022
0.5.1 Feb 19, 2022
0.2.0 Jun 5, 2019

#28 in Images

Download history 1418/week @ 2024-01-24 1050/week @ 2024-01-31 1120/week @ 2024-02-07 1117/week @ 2024-02-14 4970/week @ 2024-02-21 23776/week @ 2024-02-28 26483/week @ 2024-03-06 18929/week @ 2024-03-13 27866/week @ 2024-03-20 23455/week @ 2024-03-27 21637/week @ 2024-04-03 14390/week @ 2024-04-10 23180/week @ 2024-04-17 23302/week @ 2024-04-24 23749/week @ 2024-05-01 14606/week @ 2024-05-08

90,101 downloads per month
Used in 20 crates

MIT/Apache

3MB
4K SLoC

rust-qr-reader - Find and read QR-Codes

documentation Build Status

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")?.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

License

Either APACHE or MIT

Attribution

This library was made on the base of quirc

Dependencies

~2.7–5.5MB
~65K SLoC