Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Reading QR code

Solved!
Go to solution

Harlo..... recently i am using the labview example, Read QR code.vi.... i found out something weird that when i rotate the image to 45 degree and rotate it back to the original position... the vi pop out an error message that : 

QR.png

 

But this image initially can be decode by this vi.... the weird thing is that after rotate, even rotate back to the original position... it can not done the decoding process... do anyone knows what is happening here???

 

This is the image that i used to decode....

 

 

0 Kudos
Message 1 of 5
(5,372 Views)
Solution
Accepted by topic author polipoloi

Typically the error presented by labview arises when you try do some operation on an image type that is inappropriate for the operation.

image types are:
RGB 32

RGB 64

U8

I8

U16

I16
etc...
and refers to the datatype used for a pixel

when rotating you typically supply a destination image, and my guess is that the dst image is of a different type than what is rotated...
hence the output of the rotation is now of the dst image type, instead of the input type.

 

to avoid this, when creating the dst image, use the "get image info" to get the type of the input image, and then wire that to the "create image"

Engineer, M.Sc. Autonomous Systems, Automation and Control of non-linear systems
Project Engineer @ R&D A/S
www.rdas.dk
Message 2 of 5
(5,369 Views)

Thanks a lots~~ ZCuba Smiley Wink

0 Kudos
Message 3 of 5
(5,340 Views)

thanks for sharing!

i have several years' experience in generating barcode, i think some turioals and articles might be helpful. you can google QR code, and some articles can be available. i can give you some if you need .
this is the tutorial of generating qr code in vb  , you can ,make it as reference and the tool if free for 30 days. good luck!

0 Kudos
Message 4 of 5
(5,265 Views)

We are talking about reading QR Code, not about generating qr code. I think qr code reading and qr code generation are quite different.

0 Kudos
Message 5 of 5
(5,157 Views)