#qr #detection

rqrr

Detect and read QR codes from any image source

16 unstable releases (7 breaking)

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

#29 in Images

Download history 20059/week @ 2024-06-29 19417/week @ 2024-07-06 27125/week @ 2024-07-13 29772/week @ 2024-07-20 22587/week @ 2024-07-27 20288/week @ 2024-08-03 14703/week @ 2024-08-10 17015/week @ 2024-08-17 19154/week @ 2024-08-24 17675/week @ 2024-08-31 17322/week @ 2024-09-07 17323/week @ 2024-09-14 22337/week @ 2024-09-21 15887/week @ 2024-09-28 21541/week @ 2024-10-05 21308/week @ 2024-10-12

85,156 downloads per month
Used in 22 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