Comments (4)
Hello, I didn't see any API can get the QR Code version, error correction level, and mask.
from python-zxing.
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.
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.
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)
- Cannot install from tarball HOT 1
- Command-line interface HOT 4
- data matrix generator HOT 1
- Fix TravisCI test failure for python 3.7, 3.8
- read multiple barcodes? HOT 3
- raw and parsed decode compatibility with ZXing HOT 5
- Use jpype for wrapper? HOT 2
- how to get rawByte from qr code? HOT 2
- How to input image array instead of filename to read QR code? HOT 3
- utf-8 codec decoding error HOT 3
- Can't find the code when there are other content in the image HOT 1
- Different results from online decoder HOT 2
- ZXing does not decode some QR images HOT 2
- UnboundLocalError: local variable 'bc' referenced before assignment HOT 4
- Issues in decoding PDF 417 format Barcodes HOT 2
- Can't install ZXing - FileNotFoundError "requirements.txt" HOT 13
- what's the difference between raw and parsed results? HOT 1
- Java binary specified does not exist HOT 2
- utf-8 encoding problem, ???????? instead of Thai letters HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from python-zxing.