Is there a Max/Msp Qr Code Decoder?
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.
Yep-yep! I’m very interesting too!
Quote: outoff wrote on Tue, 23 September 2008 09:12
> Yep-yep! I’m very interesting too!
Thanks for the link, I will give it a go and let you know if I have any success.
It would be great!
> 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
> 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…?
>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.
So, need advice from mxj specialist
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… :)
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.
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…
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?
Bump! This would be great, especially with the c74 iphone app!!