17 unstable releases (8 breaking)

0.9.0 Jan 7, 2025
0.8.0 Oct 7, 2024
0.7.1 Mar 14, 2024
0.6.0 Jan 3, 2023
0.2.0 Jun 5, 2019

#43 in Images

Download history 20355/week @ 2024-10-28 28238/week @ 2024-11-04 28378/week @ 2024-11-11 25331/week @ 2024-11-18 12733/week @ 2024-11-25 21879/week @ 2024-12-02 22693/week @ 2024-12-09 22043/week @ 2024-12-16 3492/week @ 2024-12-23 5629/week @ 2024-12-30 22164/week @ 2025-01-06 30671/week @ 2025-01-13 21165/week @ 2025-01-20 28272/week @ 2025-01-27 31291/week @ 2025-02-03 30923/week @ 2025-02-10

111,912 downloads per month
Used in 23 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