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

#36 in Images

Download history 18922/week @ 2024-03-14 28436/week @ 2024-03-21 24704/week @ 2024-03-28 16725/week @ 2024-04-04 17444/week @ 2024-04-11 23718/week @ 2024-04-18 23161/week @ 2024-04-25 23592/week @ 2024-05-02 18215/week @ 2024-05-09 26918/week @ 2024-05-16 26618/week @ 2024-05-23 31071/week @ 2024-05-30 21277/week @ 2024-06-06 21924/week @ 2024-06-13 24998/week @ 2024-06-20 19402/week @ 2024-06-27

94,729 downloads per month
Used in 21 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.8–5.5MB
~66K SLoC