Quiet Zone in QR Code

422 views
Skip to first unread message

Chrisse

unread,
Jun 21, 2009, 5:14:43 AM6/21/09
to zxing
Hello,

I've got a question regarding quiet zones and I can't find the answer
on the zxing page or in the javadoc. Does the Zxing generation
algorithm for QR Codes automatically include the recommendet quiet
zone in the Byte-Matrix output or do I have to add it manually?

srowen

unread,
Jun 21, 2009, 8:53:35 PM6/21/09
to zxing
No I don't believe it does this -- you would place the bitmap in a
larger image as desired and in the right position to include enough
padding around it.

Daniel Switkin

unread,
Jun 22, 2009, 9:53:46 AM6/22/09
to zxing
The QRCodeWriter class does add the required quiet zone:

http://code.google.com/p/zxing/source/browse/trunk/core/src/com/google/zxing/qrcode/QRCodeWriter.java

whereas the underlying classes in the encoder do not:

http://code.google.com/p/zxing/source/browse/#svn/trunk/core/src/com/google/zxing/qrcode/encoder

So yes, if you use the QRCodeWriter or the MultiFormatWriter classes,
you will get a quiet zone as part of the image.

Hope that helps,
Daniel

On Jun 21, 5:14 am, Chrisse <chrisse_mau...@yahoo.de> wrote:

Chrisse

unread,
Jun 22, 2009, 6:02:12 PM6/22/09
to zxing
Thanks a lot Daniel,

that was exactly what I was looking for. Thanks to srowen as well for
the answer.
Reply all
Reply to author
Forward
0 new messages