How to create QR Code manually (by hand) OR Alternative to Swetake's

4,156 views
Skip to first unread message

Dezou Yungbow

unread,
Aug 6, 2008, 4:07:22 AM8/6/08
to zxing
Hi,

I have developed my own QR code decoder using zxing core as the
library. Deployed as a midlet for my cellphone Motorola E6. Worked,
but not quite accurate.

What i want to know is, is there anyone can teach me how to create QR
code manually. I mean simple as create QR code for this "abc" string.

I found only one (http://www.swetake.com/qr/index-e.html), but it's
quite complicated.

srowen

unread,
Aug 6, 2008, 8:23:04 AM8/6/08
to zxing
I listed three other online encoders here under "Encoders":
http://code.google.com/p/zxing/wiki/InterestingLinks

Among them is our chart server API, which will encode "abc" quite
easily like so:
http://chartserver.apis.google.com/chart?cht=qr&chs=200x200&chl=abc

I am actually really pleased to hear it runs on the ROKR -- er, sounds
like your own app did. If any changes were necessary from the MIDlet
in this library to get it to work I'd love to hear it. I am also not
so surprised that it doesn't work all that well on the ROKR since it
doesn't have JSR-234 / auto-focus and the library is not great at
dealing with blur.

Any insights that you are willing and able to share about your
experiences here would be most useful.

Christian Hentschel

unread,
Aug 6, 2008, 10:17:52 AM8/6/08
to zx...@googlegroups.com
Hello,
    You could try lyngoh service. www.lyngoh.com  We'll be very pleased about your comments and new requested features!.

TIA.
CH

srowen

unread,
Aug 6, 2008, 12:40:45 PM8/6/08
to zxing
I'll add this to the wiki.

On Aug 6, 10:17 am, Christian Hentschel <chentsc...@gmail.com> wrote:
> Hello,
>     You could try lyngoh service.www.lyngoh.com We'll be very pleased

Christian Hentschel

unread,
Aug 6, 2008, 4:37:17 PM8/6/08
to zx...@googlegroups.com
Thanks srowen. Hope u guys find the site useful. !

There's also avaliable a mobile interface at m.lyngoh.com . Comments ..welcome!

TIA
CH

Dezou Yungbow

unread,
Aug 6, 2008, 10:37:55 PM8/6/08
to zxing
Uh, you got it wrong ^^
What i mean is, i want to know how to create a qrcode symbol by
"hand" (literally)
What the heck do i need that for? i can see you thinking^^
well, i'm just curious, that's it.
I mean, we can create by hand 1d barcode easily, can we do that too
for qrcode?
Of course, we don't need to do that for version 2 or up.
Just a simple string like "abc" in a version 1 symbol.
^^

By the way, about my midlet, i'm just implemented some Displayable and
Manager classes around the core library.
No modification to the core, yet. And still needs a lot of work.
Yes, its true that the problem is with the rokr E6 is it doesn't have
autofocus and/or JSR-234, but using your library
is producing better result than if i use "other" open source library.
Also by the way the phone always nagging me with permission
confirmation thing, makes capturing difficult
you have to have steady hands when capturing ^^

srowen

unread,
Aug 6, 2008, 11:17:40 PM8/6/08
to zxing
You mean you want to compute the bits of the QR Code symbol by hand?
Well you can buy the QR Code spec from ISO and follow it. It is far
harder than a 1D barcode, if only because you need to Reed-Solomon
encode the bytes. How's your polynomial math over GF(256)? :) You
almost certainly don't want to do it by hand. You could step through
our source code to follow how it is done too if you like.

Yeah let us know if you have ideas about addressing the blur issue. I
think there are two approaches:
1) better black/white thresholding. If you get this really right, blur
doesn't matter much since you end up with the right black/white image
2) smarter deconvolution. This seems too slow compared to its
usefulness but we could well be wrong

Try holding the phone farther away from the QR Code. Even if it's
smaller, if it's farther it is more in focus, and that could be better
overall.

Not sure if you can disable the permissions thing on a Motorola. You
can on Nokias and Sony Ericsson's, sort of.
Reply all
Reply to author
Forward
0 new messages