Giter Club home page Giter Club logo

Comments (5)

SanKumSan avatar SanKumSan commented on July 20, 2024

Hello,
Zxing tries to detect and decode barcode/qrcode/any other formats of the codes in your given Rectangle section.

Zxing detects something which is not barcode or qrcode but resembles or looks like barcodes or qrcodes. Can be text which resembles like barcode or b/w logo which might look like barcode for ZXing and others, and due to this it decodes something from this False Positive detection.

Try to draw what it has found and you will get more info on what it detected and decoded.
NOTE : these are my observations found from using ZXing for Net.

Also, you could also use and try to decode again with MultiFormatReader, and not just Simple BarcodeReader.

var source = new BitmapLuminanceSource(bitmap);     
var binaryBitmap = new BinaryBitmap(new HybridBinarizer(source));
            var reader = new MultiFormatReader();
            var hints = new Dictionary<DecodeHintType, object>();
            hints.Add(DecodeHintType.TRY_HARDER, true);
            reader.Hints = hints;

            var scan = reader.decode(binaryBitmap, hints);

from zxing.net.

kkkaktusss avatar kkkaktusss commented on July 20, 2024

I tried this code, but it didn't help. Now reader has started to define the qar code as PHARMA_CODE.
2024-06-19_16-31-48

from zxing.net.

SanKumSan avatar SanKumSan commented on July 20, 2024

Hello,
If possible please share the image file and not just the rectangular section and I would try to decode and get back to you.

Also, post what exactly you want to decode from this, if you know what it contains and if not confidential.

from zxing.net.

kkkaktusss avatar kkkaktusss commented on July 20, 2024

There should be 5 fields in the QR_CODE. I am attaching the file below.
forIssue.pdf

from zxing.net.

SanKumSan avatar SanKumSan commented on July 20, 2024

Hello,
I have tried to decode and decoded UPC_E value, and I think it is not correct.

  1. Check on how your pdf is generated.
  2. Check what kind of error correction is encoded with the QRcode (Low, Medium or High) .
  3. If it is converted from jpg/tiff to pdf then the compression in the image may cause decoding failure.

from zxing.net.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.