#qrcode #detection

rqrr

Detect and read QR codes from any image source

13 releases

0.6.0 Jan 3, 2023
0.5.2 Oct 3, 2022
0.5.1 Feb 19, 2022
0.4.0 Nov 8, 2021
0.2.0 Jun 5, 2019

#189 in Encoding

Download history 414/week @ 2022-11-28 348/week @ 2022-12-05 480/week @ 2022-12-12 350/week @ 2022-12-19 269/week @ 2022-12-26 325/week @ 2023-01-02 538/week @ 2023-01-09 391/week @ 2023-01-16 395/week @ 2023-01-23 472/week @ 2023-01-30 492/week @ 2023-02-06 735/week @ 2023-02-13 620/week @ 2023-02-20 352/week @ 2023-02-27 973/week @ 2023-03-06 1091/week @ 2023-03-13

3,153 downloads per month
Used in 12 crates (11 directly)

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