piderman314 / bardecoder

Detect and decode QR Codes, written in 100% Rust.
MIT License
268 stars 34 forks source link

Mode 0111 not yet implemented #54

Open RNGKing opened 10 months ago

RNGKing commented 10 months ago

As per the title

Can't decode the following image.


use bardecoder;
use bardecoder::prepare::BlockedMean;
fn main() {
    let img = image::open("E:\\rust_demo_projects\\rust_python_example\\back_end\\frame.png").unwrap();

    let mut db = bardecoder::default_builder();

    // Use some different arguments in one of the default components
    db.prepare(Box::new(BlockedMean::new(7, 9)));

    // Build the actual decoder
    let decoder = db.build();

    let results = decoder.decode(&img);
    for result in results {
        println!("{}", result.unwrap());
    }
}

frame_new