[−][src]Function rqrr::find_and_decode_from_image
pub fn find_and_decode_from_image(img: &DynamicImage) -> Vec<Code>
Given a image object, locate all codes found in it
This is a convenient wrapper if you use the image
crate already. The only requirement
for the image is that the 'black' parts of a QR code are 'dark', 'white' parts 'bright'.
Example
use image; use rqrr; let img = image::open("tests/data/github.gif").unwrap(); let codes = rqrr::find_and_decode_from_image(&img); assert_eq!(codes.len(), 1); assert_eq!(codes[0].val, "https://github.com/WanzenBug/rqrr");