Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Tricky QR codes

Hi all,

 

I'm having trouble reading these QR codes. Any idea on why? I can't tell if the format is off or anything; I can read them with my phones barcode scanner, so that's why it's bugging me.

 

Thanks in advance!

Download All
0 Kudos
Message 1 of 11
(5,209 Views)

Hi

I had a quick look and not being a QR code expert, I tried the suggest values button on the QR Code read. It automagically set the values fro me and read straight away. Without any extra images to try it on I couldn't test it further. Try the suggest values and see how it works out.

 

Mike

Message 2 of 11
(5,165 Views)

Hey Mike,

 

Thanks for your help. I tried suggest values, but it still couldn't read the code. Would you be able to try the same method on the 2 QR codes I attached? Somehow they didn't attach with my original post.

Also, which version of Labview are you using? I'm on 2011 service pack 1; I'm wondering if I should try upgrading.

Download All
0 Kudos
Message 3 of 11
(5,140 Views)

002 worked right off the bat, but even with suggested values I was unable to decode 001 and 003.

 

-AK2DM

~~~~~~~~~~~~~~~~~~~~~~~~~~
"It’s the questions that drive us.”
~~~~~~~~~~~~~~~~~~~~~~~~~~
Message 4 of 11
(5,134 Views)

I have a feeling it is to do with cell size. The codes are quite small. Could you take images roughly 640 x 480 pixels and have the code fit the image like these do. As the lighting is not optimal on these, I have ben playing with thresholding and I get some grainy images on the edges of the cells. When this is rotated in 1 and 3 then it gets worse and we are around the 3 to 4 pixels per cell edge. 

 

This is all based on my knowledge of DataMatrix codes but I believe it should hold true for QR codes too.

 

Mike

Message 5 of 11
(5,115 Views)

Hi, seems these codes are really hard to decode.

I managed to decode only one of your codes.

Then I tried with an online decoder tool, the result was exactly the same. http://zxing.org/w/decode.jspx

 

So it seems those QR are not correctly encoded.

Regards

Message 6 of 11
(5,088 Views)

Thanks for the help all! Looks like the codes are bad quality. Still, they visually look ok, so I'll probably keep trying. Maybe some computer vision enhancements like hole filling or dilation? 

0 Kudos
Message 7 of 11
(5,068 Views)

Hi

When you were reading them with the phone scanner were you reading with the camera directly, or with an image of the code as you posted here?

I still think that the resolution is too low.

 

Mike

0 Kudos
Message 8 of 11
(5,057 Views)

I get a 1920x1200 image and search for the qr code from there. 

 

You're definitely right about the resolution being too low, but unfortunately this is all my project allows for. The camera must be set up a certain distance away from the qr code, where it takes a 1920x1200 image. The resulting resolution of the images I provided is directly from cropping the code out of that image. 

0 Kudos
Message 9 of 11
(5,040 Views)

The resolution is fine.  I doubled the resolution on all the images, and image 2 is still the only one that will read.  I randomly rotated each of the images, and image 2 was still the only one that would read.

 

Since images 1 and 3 have the same barcode in them, I would suggest that the barcode was encoded incorrectly, or with a method that is not compatible with most readers (including NI's).  I think the reader is working just fine.

 

Bruce

Bruce Ammons
Ammons Engineering
0 Kudos
Message 10 of 11
(5,020 Views)