Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Reading M1 micro qr codes

Hi Everyone,

 

I've been working to develop a micro qr code reader using a webcam and it's been working really great! However, I'm currently using version M2 micro qr codes which are 13x13 block codes and I'd like to switch to version M1 (11x11) micro qr codes to reduce the size of the qr code needed for detection. My issue is that the M1 qr codes I've generated online are not detected by the IMAQ Read QR Code block. I generated them using the same website I used to generate the version M2 qr codes, which work great. My question is, has anyone had success detecting version M1 micro qr codes? and if so, what tools did you use to create these qr codes?

 

Additionally, does labview provide tools to generate qr codes? I haven't been able to find anything, but this method would probably ensure that I'm using the correct M1 qr codes. 

 

I've attached an image of the version M2 qr code that I'm currently using, and the version M1 qr code that I am attempting to use.

 

Thanks!

Download All
0 Kudos
Message 1 of 5
(7,277 Views)

Hi Chartle,

 

You should be able to read M1 codes with that same VI. The IMAQ Read QR Code VI has an input in the QR Description Options cluster called QR model. Different values correspond to the model. See the help linked below!

 

http://zone.ni.com/reference/en-XX/help/370281U-01/imaqvision/imaq_read_qr_code/

Rahul B.
0 Kudos
Message 2 of 5
(7,207 Views)

Hey Rahul,

 

I did change the QR Description Options cluster to detect version M1 micro qr codes. I also had attempted setting it to auto-detect. Neither method was successful.

 

I guess what I'm looking for is a little more information on the M1 qr code format the decoder VI is expecting. I can't seem to find this documentation anywhere. The M1 methods I've found online are seemingly different than the M1 version the VI is expecting (given that it won't detect them).

 

-Chris

0 Kudos
Message 3 of 5
(7,198 Views)

Hi Chartle,

 

Yeah, I tested your images and the "m1" one did not seem to work as you said. The one labelled M2 was detected as Micro QR code when I tried this out (I think Micro QR codes have just one square in the upper left), while M2 seems to have three squares - top left, bottom left, and top right, which is interesting to note. 

 

A QR generator from our community can be found here: https://decibel.ni.com/content/docs/DOC-14442. However, I did not see a way to generate micro QR codes.

 

How are you currently generating both codes? The one that does not work seems to have too large of a square, and either way is not a M1 code from my experience (I think M1 and M2 look the same but M1 is just older).

Rahul B.
0 Kudos
Message 4 of 5
(7,148 Views)

Hey Rahul,

 

The website I used is http://keremerkan.net/qr-code-and-2d-code-generator/ 

 

Additionally, there are four versions of micro qr codes (M1-M4). Each version has higher data storage capacity, but a larger size. The site http://www.qrcode.com/en/codes/microqr.html explains the different micro-qr codes and their features. The IMAQ read qr codes VI looks like it supports all of these options. If I create a constant for the VI inputs, I can select between 11x11(M1) 13x13(M2) 15x15(M3) and 17x17(M4). The two images I sent you are a 13x13 (M2) micro qr code (there is only one detection square in this qr code) which is detected, and an 11x11(M1) micro qr code (also with one detection square) that is not detected. 

 

Also, the link you provided in your response seemed to be removed. 

 

I feel like there has to be a document somewhere that describes the format of the micro qr codes required for detection, or the algorithm used to decode the 11x11 micro qr code that I can use to reverse generate an acceptable code.

 

Lastly, the help page http://zone.ni.com/reference/en-XX/help/370281U-01/imaqvision/imaq_read_qr_code/ does not say which specific versions of micro qr code are allowed, it only says that there is a descriptor for specifying the cell size. So, I'm basing my assumption on the supported micro qr codes from the dropdown menu that is created for this descriptor when I do right click -> create constant. 

 

Thanks for your continued help.

0 Kudos
Message 5 of 5
(7,143 Views)