Is there a Max/Msp Qr Code Decoder?

meal's icon

Hi guys,

I'm not sure if this is under the right forum, I'm looking for a way to decode Qr Code or other forms of 2d barcode in max for a student project.

I'm hoping I can do this with webcam input.

Does anyone know of a method to help me do this? I've done some searching but maybe I am using the wrong keywords.

Cheers,

Emile.

[img]index.php?t=getfile&id=2001&private=0[/img]

outoff's icon
meal's icon

Quote: outoff wrote on Tue, 23 September 2008 09:12
----------------------------------------------------
> Yep-yep! I'm very interesting too!
>
> https://cycling74.com/forums/index.php?t=msg&goto=150871&rid=0&srch=quick+responce#msg_150871
----------------------------------------------------

Thanks for the link, I will give it a go and let you know if I have any success.

outoff's icon

It would be great!

Stefan Tiedje's icon

Emile schrieb:
> I'm not sure if this is under the right forum, I'm looking for a way
> to decode Qr Code or other forms of 2d barcode in max for a student
> project.
>
> I'm hoping I can do this with webcam input.

Maybe on the Jitter forum there are people who know how to do it,
especially if you try to do it with a webcam...?

Stefan

--
Stefan Tiedje------------x-------
--_____-----------|--------------
--(_|_ ----|-----|-----()-------
-- _|_)----|-----()--------------
----------()--------www.ccmix.com

outoff's icon

>jkc
>Messages: 3712
>Registered: November 2002     Senior Member    

>We're not going to make this, but it shouldn't be hard for >someone to interface with the following Open Source QR Code >Library in mxj. I believe this is what the third party > processing lib uses.
> http://qrcode.sourceforge.jp/

> -Joshua

So, need advice from mxj specialist

seejayjames's icon

If the resolution XY of the barcodes is known, it's definitely doable with a webcam, but the positioning needs to be exact. Essentially you get a matrix in of the image (jit.qt.grab) and then extract all the cell information (getcell iterated through the whole image, or probably there are better ways, then analyze each value). Being black and white this would be simple, as you could analyze only the R G or B components (if any of them > 0 then it's white, assuming good image quality... may need to tweak this). If you have barcodes with different resolution, you can adjust for this in your patch, since you can adjust pretty much everything. The example jpeg looks like 24X24...?

Barring exact placement, you could do some trickery with selecting the area of the barcode in your image: your initial image is barcode-plus-whatever-else is in the camera's view, then you choose only the barcode for analysis. (You may need to do this anyway if the barcode isn't 4:3 proportions, as most webcams are.) The srcrect and dstrect commands for matrices will help here---that is, what part of the original rectangle you are actually using.

Being black and white, and "blocky" in its layout, this should be pretty straightforward. What are you going to do with the information, out of curiosity? That's the fun part... :)

--CJ

meal's icon

Thanks for your help and suggestions CJ! I am hoping to create a synth which will read and translate printed 2d barcode into a musical score.

outoff's icon

Suppose you can also use Processing, and send message from it.
But it will be great to use one our lovely programming environment. It's true.

How do you think, may be possible to use [cv.jit.learn], never try to learn it anything...

Brecht's icon

Hi all,

I am also interested in being able to read QR codes within max and was wondering whether there are any developments in this area since the previous post?
Has anyone been able to implement the Open Source QR Code Library yet?

regards,
B.

Beep's icon

Bump! This would be great, especially with the c74 iphone app!!

aspbrandson's icon

I found many scanners for matrix barcodes like QR Code, Data Matrix etc.

adsfsfwe's icon

I have used QR Code barcode scanner. Now it is easy to find one. Just make full use of Google. Right now I am also using a barcode creator called C# barcode generator in ASP.NET. I found this in Google by myself. The scanner was told by my friend.

Peter McCulloch's icon

It was pretty interesting to read just how much thought went into this and how resilient it is in real-world settings. http://en.wikipedia.org/wiki/QR_code

clintonzz's icon

hello, maybe this QR code can satisfy your needs, have a try, maybe you will find what you need,
hope it helps,

arronlee's icon

You can decode QR code using a QR code reader easily. Google it and choose one whose way of processing is simple and fast to halep you. Remember to check its free trial package first if possible. I hope you success. Good luck.

waybetter's icon

do you want to build a project to decode qr code, or do you just need a qr code plugin to help you. if you just need a professional qr code decoder, you can find a lot on the web . some are free.

Kav Nico's icon

You need a QR code scanner, and I use the qr code reader, it can read data matrix.