QRCode A blog site to remind me some things I did
Published
Sharing
Introduction to zxing.org
I just discovered zxing.org a few days ago. It's an interesting tool to generate and analyze bar code and QR Codes.
A QRCode stands for Quick Response Code and aims at replacing bar codes in the future. Here is an example of QRCode:
Advantages on bar codes
Bar code stores information in one dimension. QR Code stores information on 2 dimensions. You then can store more information, and this one ay be redundant so if your QRCode isn't complete, you can still get the information.
Download and compile
Just get the source on the svn server and compile core and javase modules. It's enough to use the command to extract the information from a QRCode
Test
By using the following command, you can extract the information stored into it a QRCode:
java -cp javase/javase.jar:core/core.jar com.google.zxing.client.j2se.CommandLineRunner "http://chart.apis.google.com/chart?cht=qr&chs=230x230&chl=MECARD%3AN%3AJean-Christophe+Kermagoret%3BTEL%3A%2B33240466278%3BURL%3Ahttp%3A%2F%2Fwww.bluexml.com%3BEMAIL%3Ajck-qrcode%40bluexml.com%3BADR%3A40%2C+bd+Jean+Ingres+44100+Nantes%3B%3B"
This will give you the following results:
Raw result:
MECARD:N:Jean-Christophe Kermagoret;TEL:+33240466278;URL:http://www.bluexml.com;EMAIL:jck-qrcode@bluexml.com;ADR:40, bd Jean Ingres 44100 Nantes;;
Parsed result:
Jean-Christophe Kermagoret
40, bd Jean Ingres 44100 Nantes
+33240466278
jck-qrcode@bluexml.com
http://www.bluexml.com
Also, there were 4 result points.
Point 0: (39.0,191.0)
Point 1: (39.0,39.0)
Point 2: (191.0,39.0)
Point 3: (179.0,179.0)
You can then parse the results very easily to take the right decision.
YaMma Use Case
I'm going to use this QRCode to add information manually on paper documents for the next version of the YaMma open source project, based on Alfresco, which deals with mail (paper and electronic) management. The document can then be acquired and analyzed through an OCR to get the previous information. If quality isn't enough, you can add the --try_harder parameter. The document will then be automatically filed into the right directory of your file plan.
Mobile Use Case
You can also use your phone mobile to extract the information. Install the i-nigma application on your iPhone and scan the QRCode above. You'll almost instantly get the information.
blog comments powered by Disqus