19 releases

new 0.9.2 Mar 23, 2025
0.9.0 Jan 7, 2025
0.8.0 Oct 7, 2024
0.7.1 Mar 14, 2024
0.2.0 Jun 5, 2019

#42 in Images

Download history 21864/week @ 2024-12-01 22603/week @ 2024-12-08 22100/week @ 2024-12-15 3518/week @ 2024-12-22 5571/week @ 2024-12-29 21964/week @ 2025-01-05 30817/week @ 2025-01-12 21278/week @ 2025-01-19 28069/week @ 2025-01-26 31430/week @ 2025-02-02 30821/week @ 2025-02-09 25293/week @ 2025-02-16 29554/week @ 2025-02-23 26040/week @ 2025-03-02 29274/week @ 2025-03-09 30336/week @ 2025-03-16

116,160 downloads per month
Used in 24 crates

(MIT OR Apache-2.0) AND ISC

145KB
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

~1–2MB
~35K SLoC