Skip to content

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

Closed
@vivekratansinha

Description

@vivekratansinha

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

Activity

srowen

srowen commented on Sep 2, 2014

@srowen
Contributor

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

vivekratansinha

vivekratansinha commented on Sep 2, 2014

@vivekratansinha
Author

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

vivekratansinha

vivekratansinha commented on Sep 2, 2014

@vivekratansinha
Author

Found it.
DecodeHintType.PURE_BARCODE

baichengzhou

baichengzhou commented on Oct 24, 2016

@baichengzhou

牛逼,解决我的问题了。

baichengzhou

baichengzhou commented on Oct 24, 2016

@baichengzhou

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

yyds-6699

yyds-6699 commented on Dec 21, 2016

@yyds-6699

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

ysq1051838264

ysq1051838264 commented on Jan 10, 2017

@ysq1051838264

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

tanranran

tanranran commented on Aug 28, 2017

@tanranran

@ysq1051838264
+1

me too

zxing version 3.3.0

Humilton

Humilton commented on Jan 29, 2018

@Humilton

试试 : 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

dublinmiton commented on Feb 16, 2018

@dublinmiton
jinyu73

jinyu73 commented on Apr 22, 2019

@jinyu73

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

chengduHebiao

chengduHebiao commented on Dec 4, 2019

@chengduHebiao

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

baichengzhou

baichengzhou commented on Dec 4, 2019

@baichengzhou

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

chengduHebiao commented on Dec 4, 2019

@chengduHebiao

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

能给点建议和方向吗?

5 remaining items

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @spkingr@srowen@tanranran@yyds-6699@vivekratansinha

        Issue actions

          QRCodeReader not decoding:com.google.zxing.NotFoundException · Issue #216 · zxing/zxing