Comments (6)
Thanks for your report.
Can you provide an example (or a test case)?
Are you using the API or the command line script?
Which decoder do you use?
Thanks.
from segno.
Thank you for your reply!
This is my code:
import sys
import segno
qr = segno.make('0H450116721300010000001-010010000000000011842118', version=7, error='H')
qr.save('H.png', scale=5)
And I decode H.png by https://www.onlinebarcodereader.com/, the following image is the result.
The correct result should be:
from segno.
Thanks for your explanation. As I see it, the output (see "content" box) is correct (your screenshot does not show the complete box).
IMO it's a problem of the webservice and not a Segno issue. You can try QR codes generated by other libs (I used PyQRCode and libqrencode) and you'll always get the same result.
from segno.
Yes. It looks right, but in fact sengo append a "\n" to the content. We can find a '0a' in the end of the hex values and it's a "\n" ( hex(ord('\n')) = 0xa ).
from segno.
but in fact sengo append a "\n" to the content.
I guess the webservice adds it while decoding or presenting the hex code.
As written, the webservice always adds 0a regardless which QR code lib I tried.
Please try another QR code lib and you'll see that it adds the 0a to the result.
Here the result of another decoder (ZXing):
from segno.
OK. I'll try it. Thank you very much.
from segno.
Related Issues (20)
- Limitations on the maximum number of characters that can be entered HOT 4
- Custom QR Codes with Logo HOT 5
- Segno GUI and Windows prebuilt executables HOT 2
- Creating QR Codes with Multiple Data Modes HOT 2
- url info not importing via QR vCard HOT 2
- Is it possible to round the edges HOT 2
- upable to load image in vcard qrcode
- Unable to create QR codes with modes less than binary/'bytes' HOT 2
- Malformed padding when number of bits is a multiple of 8 HOT 3
- reduce size of output HOT 1
- FYI - Deprecated warnings with: python -m build --wheel
- Fix for pillow 10
- pkg_resources is deprecated as an API.
- Unable to animate qr using .to_artistic() HOT 6
- Add image while using .make_mecard module HOT 4
- Remove plugin system HOT 2
- The default iso-8859-1 encoding unsafe, can be misdecoded by zbar as Big5 (was: Unicode-related test failures on musl libc) HOT 14
- Online demo using this library HOT 3
- Eyes and frames customize required! HOT 3
- Any plans to support currencies other than EUR? HOT 1
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 segno.