You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
when I scan the qr code [0], the content is recognized correct, but I also get the error Error decoding QR Code: Unable to find alignment pattern two times.
I use the following code:
fn read_image(file: &str) {
let img = image::open(file).unwrap();
let decoder = bardecoder::default_decoder();
let results = decoder.decode(&img);
println!("{:?}", results);
}
The result is:
[Err(QRError { msg: "Unable to find alignment pattern" }), Ok("{\"from\":\"2x86a5EA18C28ad2e6e4ACD2d12544E4e2f680f65f\",\"gasPrice\":\"0x618411a00\",\"gasLimit\":\"0x86cd0\",\"to\":\"0x4a650d562048cF522422dF6C5dAc48c652F6888D\",\"value\":\"0x0\",\"data\":\"0x18c4afe5000000000000000000000000000000000000000000000000016285485d8a000000000000000000000000000000000000000000000000000001668f262c25800000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000086a5ea18c28ad2e6e4acd2d12544e4e2f680f65f0000000000000000000000000000000000000000000000000000000062e4c8220000000000000000000000000000000000000000000000000000000000000006000000000000000000000000c06aaa224662fe8d0a0e5c8f64ead2082c456cc6000000000000000000000000c06aaa224662fe8d0a0e5c8f64ead2082c456cc6\",\"nonce\":\"0x88\"}{\"from\":\"2x86a5EA18C28ad2e6e4ACD2d12544E4e2f680f65f\",\"gasPrice\":\"0x618411a00\",\"gasLimit\":\"0x86cd0\",\"to\":\"0x4a650d562048cF522422dF6C5dAc48c652F6888D\",\"value\":\"0x0\",\"data\":\"0x18c4afe5000000000000000000000000000000000000000000000000016285485d8a000000000000000000000000000000000000000000000000000001668f262c25800000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000086a5ea18c28ad2e6e4acd2d12544e4e2f680f65f0000000000000000000000000000000000000000000000000000000062e4c8220000000000000000000000000000000000000000000000000000000000000006000000000000000000000000c06aaa224662fe8d0a0e5c8f64ead2082c456cc6000000000000000000000000c06aaa224662fe8d0a0e5c8f64ead2082c456cc6\",\"nonce\":\"0x88\"}"), Err(QRError { msg: "Unable to find alignment pattern" })]
This seams to happen in some QR-Codes, where I put the same content twice, e.g. let content = format!("{}{}", c, c);
Hi,
when I scan the qr code [0], the content is recognized correct, but I also get the error
Error decoding QR Code: Unable to find alignment pattern
two times.I use the following code:
The result is:
This seams to happen in some QR-Codes, where I put the same content twice, e.g.
let content = format!("{}{}", c, c);
[0] https://i.ibb.co/KWrZ2DW/bardecodererror.png
The text was updated successfully, but these errors were encountered: