포럼: Japanese (Thread #14815)

ゴミ入りQRコードの読み取り (2007-04-26 16:30 by Anonymous #29373)

QRCodeDecoderCUIExample.javaを使用して、携帯電話のQRコードリーダーで読み取れるレベルのゴミ(文字)を組み合わせたQRコードを読み込んだ際に、デコード結果が文字化けしたものとなりました。


実行方法は
srcフォルダからjpフォルダをqrcodeフォルダにコピー

C:\qrcode>javac -cp lib\qrcode.jar;. -d . example\QRCodeDecoderCUIExample.java

で、qrcodeフォルダに
QRCodeDecoderCUIExample.class
J2SEImage.class
が生成。
またjpフォルダ内も全てコンパイル
その後、
java -cp lib\qrcode.jar;. QRCodeDecoderCUIExample res\30\QRCode01.png

実行結果>a2cdifghil.?mnopx稚盃vwxyz
求める結果>abcdefghijklmnopqrstuvwxyz


誤り訂正機能は付いていたと思っていたのですが、こちらの操作ミスなのでしょうか?

Reply to #29373×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login

RE: ゴミ入りQRコードの読み取り (2007-04-30 19:26 by yanbe #29431)

この現象は,本プロジェクトの英語フォーラムでも議論されているとおり,どうやらReed-Solomon誤り訂正符号を実装しているsrc/jp/sourceforge/qrcode/codec/ecc/ReadSolomon.javaに含まれるバグが原因である可能性があります.入力される画像によってエラーが修復できたりできなかったり,といった現状です.
Reply to #29373

Reply to #29431×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login