4

I have made applications using ZXing and ZBar both. Both are working fine and read good quality QR codes always.

But problem is when I scan the code on a card which is not that much nice in quality it never scans. I even tried with 5 MP camera device but same results. I tried many apps from Google play store but neither of them worked. Card is not of that much bad quality. Can anyone tell me the solution or suggest any other API for that. I know its not the API its the Quality of QR code. Any help would be appreciated.

This is the card Image enter image description here

toniedzwiedz
  • 17,895
  • 9
  • 86
  • 131
Shiv
  • 4,569
  • 4
  • 25
  • 39
  • You really should post a picture of it as it is essential to understand your scenario. – Sean Owen Apr 05 '13 at 08:49
  • @SeanOwen- see the image above – Shiv Apr 05 '13 at 09:04
  • This image is a complete mess. I'm afraid you'll need to use different codes, get a phone with a better camera or use an external scanner (connected via bluetooth). Are you sure the card is in focus and that there's no motion blur involved? – toniedzwiedz Apr 05 '13 at 09:08
  • see i can read the soft copy of this card but the problem is the card quality...I have also used device with 5MP camera but didn't worked. what i am saying is it can read good quality qr codes with large data but if we write that code on cards and after some time card can become rough or of low quality na?? – Shiv Apr 05 '13 at 09:12
  • I don't even think that's a QR code. I don't know what it is but looks mostly like a printing error. – Sean Owen Apr 05 '13 at 10:08
  • as i said it is a qr code but with large data ....i have its soft copy and device took a little time but scans that – Shiv Apr 05 '13 at 10:13
  • 4
    From what I can make out, the right side is chopped off. There is no top-right finder pattern. The other "finder patterns" are severely misprinted -- looks like the data is inside the bulls-eye! Here's what a QR code looks like with a lot of data: http://commons.wikimedia.org/wiki/File:Qr-code-ver-40.png – Sean Owen Apr 05 '13 at 11:17
  • Thanks @SeanOwen :) i think it will be helpful – Shiv Apr 05 '13 at 11:48

1 Answers1

2

Try these settings on the ImageScanner,

scanner = new ImageScanner();
//Slows the frame, but does the job
scanner.setConfig(0, Config.X_DENSITY, 1);
scanner.setConfig(0, Config.Y_DENSITY, 1);
scanner.setConfig(0, Config.ENABLE, 0);
// Only enable the codes your app requires
scanner.setConfig(Symbol.QRCODE, Config.ENABLE, 1);

Made a huge difference in my app.

Sydwell
  • 4,954
  • 1
  • 33
  • 36