You can encode and decode QR code in command line by using ZXing.
Download jar file of zxing
http://repo1.maven.org/maven2/com/google/zxing/core/3.1.0/core-3.1.0.jar
http://repo1.maven.org/maven2/com/google/zxing/javase/3.1.0/javase-3.1.0.jar
Decoder QR code with an image file (img.png)
java -cp "core-3.1.0.jar:javase-3.1.0.jar" com.google.zxing.client.j2se.CommandLineRunner img.png
Encode QR code
java -cp "core-3.1.0.jar;javase-3.1.0.jar" com.google.zxing.client.j2se.CommandLineEncoder --image_format=GIF --output=output.gif "YHChien: Text for encode here"
missing http://repo1.maven.org/maven2/com/beust/jcommander/1.72/jcommander-1.72.jar
ReplyDelete