rqrr

Crates.iorqrr
lib.rsrqrr
version0.7.1
sourcesrc
created_at2019-05-03 15:08:16.522957
updated_at2024-03-14 07:57:02.636227
descriptionDetect and read QR codes from any image source
homepage
repositoryhttps://github.com/WanzenBug/rqrr
max_upload_size
id131757
size3,078,424
Moritz Wanzenböck (WanzenBug)

documentation

https://docs.rs/rqrr/

README

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

Commit count: 72

cargo fmt