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

#26 in Images

Download history 1710/week @ 2024-01-07 1023/week @ 2024-01-14 1216/week @ 2024-01-21 1253/week @ 2024-01-28 1047/week @ 2024-02-04 1276/week @ 2024-02-11 1003/week @ 2024-02-18 20217/week @ 2024-02-25 24649/week @ 2024-03-03 19421/week @ 2024-03-10 25571/week @ 2024-03-17 24644/week @ 2024-03-24 28801/week @ 2024-03-31 8739/week @ 2024-04-07 22202/week @ 2024-04-14 23732/week @ 2024-04-21

83,793 downloads per month
Used in 19 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.6–5.5MB
~63K SLoC