ZXing付属のバーコード読み取りプログラム オープンソースのバーコード処理ライブラリである「ZXing」を利用すれば、JavaやAndroidのアプリケーションにおいて手軽にバーコードの生成や読み取りができるようになる。前回はZXingを使ってJavaプログラムからQRコードを生成する方法を紹介したので、今回は画像データとして保存されているQRコードを読み込んで中に格納されている情報を取得する方法を解説する。 その前に、ZXingのJavaSE用ライブラリにはコマンドラインで利用するバーコードリーダのサンプルプログラムが付属しているので、まずはこれを使ってQRコードの情報を取得してみよう。このコマンドラインプログラムの本体はcom.google.zxing.client.j2se.CommandLineRunnerというクラスである。使用するには、core.jarとjavase.jarを