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

#2 in #detection

Download history 1805/week @ 2024-01-05 1111/week @ 2024-01-12 1036/week @ 2024-01-19 1473/week @ 2024-01-26 986/week @ 2024-02-02 1124/week @ 2024-02-09 894/week @ 2024-02-16 15586/week @ 2024-02-23 23026/week @ 2024-03-01 25513/week @ 2024-03-08 18789/week @ 2024-03-15 29650/week @ 2024-03-22 25061/week @ 2024-03-29 12912/week @ 2024-04-05 20302/week @ 2024-04-12 19057/week @ 2024-04-19

82,587 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