Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FR: Output identical QR/barcode as a vector without decoding #305

Open
Lantizia opened this issue Jan 13, 2025 · 0 comments
Open

FR: Output identical QR/barcode as a vector without decoding #305

Lantizia opened this issue Jan 13, 2025 · 0 comments

Comments

@Lantizia
Copy link

Sorry if this is possible some other way... but I can't seem to find one.

Basically if you've got a whole bunch of QR/barcodes on bits of paper (scanned in as bitmap files)...
... and you DON'T really care about the real information that was encoded within them...
... but you DO care about recreating that QR/barcode as a nice crisp clean vector...
... is there a way of doing this?

I can only guess that at some point (in the zbar source code) that it knows which square (at which row/col) are black/white... and I'm wondering if that can just be directly pumped out as an SVG... without caring what information is actually encoded?

It's either that or something which can read the encoded information... AND guess the symbology type (and other parameters) accurately... and then pass those two bits of information to something else (e.g. qrencode) for it to, hopefully, recreate it.

The only other approach I've seen is this one (link)... which means counting squares, messing around in GIMP/Inkscape to trace bitmaps... and it's just very long winded and doesn't work well with bitmaps that aren't as clear.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant