Code Monkey home page Code Monkey logo

Comments (4)

winnie19970218 avatar winnie19970218 commented on June 20, 2024 1

Hello, I didn't see any API can get the QR Code version, error correction level, and mask.

from python-zxing.

dlenski avatar dlenski commented on June 20, 2024

This is a wrapper around the ZXing command-line runner, and it can't extract any information that the ZXing CLR can't show.

any API can get the QR Code version, error correction level, and mask.

I'm curious: why would you want that information while reading a barcode? The whole point of error correction is to be able to transparently and correctly return the originally-encoded string in the face of variable errors while reading the barcode.

from python-zxing.

winnie19970218 avatar winnie19970218 commented on June 20, 2024

I made a verification system, the decoder needs to know that the QR code is generated by my program when decoding, so I add the detailed information of the QR code to the database when generating the QR code. By comparing the information obtained by the decoder with the database, you can know whether the QR code is unverified.
There is a class name called Version.java in [com.google.zxing.qrcode.decoder], this class can get the QR code version.

from python-zxing.

dlenski avatar dlenski commented on June 20, 2024

I made a verification system, the decoder needs to know that the QR code is generated by my program when decoding, so I add the detailed information of the QR code to the database when generating the QR code. By comparing the information obtained by the decoder with the database, you can know whether the QR code is unverified.

This sounds like it's half steganography, half security through obscurity. Altogether, it seems like it will provide no security, but may prevent the QR codes from being decoded reliably.

The whole point of error correction is that sometimes the QR code will not be read back perfectly.

There is a class name called Version.java in [com.google.zxing.qrcode.decoder], this class can get the QR code version.

Per above, you would have to extend the ZXing command-line runner to output this information to allow python-zxing to read it.

from python-zxing.

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.