Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QRCodeReader not decoding:com.google.zxing.NotFoundException #216

Closed
vivekratansinha opened this issue Sep 2, 2014 · 19 comments
Closed

Comments

@vivekratansinha
Copy link

ZXing 3.1.1-SNAPSHOT

Encoded some UTF-8 text to QRCode.
QRCodeReader fails to decode with com.google.zxing.NotFoundException.

Enclosed is the QRCode in question.

00023

@srowen
Copy link
Contributor

srowen commented Sep 2, 2014

It decodes fine, but if you intend to decode a complex pure image you probably want PURE_BARCODE mode.

http://zxing.org/w/decode?u=https%3A%2F%2Fcloud.githubusercontent.com%2Fassets%2F8625707%2F4123968%2Fcf4376a8-32d3-11e4-8e98-f9c088be721c.PNG

@srowen srowen closed this as completed Sep 2, 2014
@vivekratansinha
Copy link
Author

Thank you for your prompt response.
Please point me towards the PURE_BARCODE mode reading.

@vivekratansinha
Copy link
Author

Found it.
DecodeHintType.PURE_BARCODE

@baichengzhou
Copy link

牛逼,解决我的问题了。

@baichengzhou
Copy link

我用zxing来解码的时候,普通的二维码能解析,但是中间带LOGO的解码的时候报错com.google.zxing.NotFoundException,虽然不是相同的问题,但是这个解决了我的问题。
hints.put(DecodeHintType.PURE_BARCODE, Boolean.TRUE);
完美!!!

@yoting
Copy link

yoting commented Dec 21, 2016

hints.put(DecodeHintType.PURE_BARCODE, Boolean.TRUE);
是的加入这一句代码解决问题。。。。

@ysq1051838264
Copy link

hints.put(DecodeHintType.PURE_BARCODE, Boolean.TRUE);加上这,还是报这错误com.google.zxing.NotFoundException

@tanranran
Copy link

@ysq1051838264
+1

me too

zxing version 3.3.0

@Humilton
Copy link

Humilton commented Jan 29, 2018

试试 : hints.put(DecodeHintType.TRY_HARDER, Boolean.TRUE);
花费更多时间来寻找二维码.

in https://github.com/zxing/zxing/blob/master/core/src/main/java/com/google/zxing/DecodeHintType.java
it said :
`
/**

  • Spend more time to try to find a barcode; optimize for accuracy, not speed.
  • Doesn't matter what it maps to; use {@link Boolean#TRUE}.
    */
    TRY_HARDER(Void.class),
    `

@dublinmiton
Copy link

dublinmiton commented Feb 16, 2018 via email

@jinyu73
Copy link

jinyu73 commented Apr 22, 2019

js使用的话,怎么解决这种报错

@chengduHebiao
Copy link

but it didnt work for me ,so any other suggestion?

@baichengzhou
Copy link

I optimized zxing, the success rate is very high, you can test it
https://www.sojson.com/qr/deqr.html
https://www.sojson.com/qr/zxing.html

@chengduHebiao
Copy link

I optimized zxing, the success rate is very high, you can test it
https://www.sojson.com/qr/deqr.html
https://www.sojson.com/qr/zxing.html

能给点建议和方向吗?

@jinyu73
Copy link

jinyu73 commented Dec 4, 2019 via email

@baichengzhou
Copy link

I optimized zxing, the success rate is very high, you can test it
https://www.sojson.com/qr/deqr.html
https://www.sojson.com/qr/zxing.html

能给点建议和方向吗?

我就是把图片色差一直调整!直到出结果

@spkingr
Copy link

spkingr commented Jan 15, 2021

Encounter the same problem, solved with the correct colored QRcode image: white and black works fine, other colors produce exceptions.

之前红色出问题,改成黑白一切正常。
请问:BufferedImageLuminanceSource 类为什么没有在 3.4.1 jar 包里?

@MrHuang77
Copy link

I optimized zxing, the success rate is very high, you can test it
https://www.sojson.com/qr/deqr.html
https://www.sojson.com/qr/zxing.html

能给点建议和方向吗?

我就是把图片色差一直调整!直到出结果
像下面的二維碼使用ZXing識別不出來,這個問題困惑了我好久
test7

@AllenThmos
Copy link

I optimized zxing, the success rate is very high, you can test it
https://www.sojson.com/qr/deqr.html
https://www.sojson.com/qr/zxing.html

能给点建议和方向吗?

我就是把图片色差一直调整!直到出结果
像下面的二維碼使用ZXing識別不出來,這個問題困惑了我好久
test7

调色差的代码借我抄抄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests