Detect qr codes

ik. my code does that. i just havent been able to get the QR part to work

But that's just an algorithm. You can write it in any language, including Snap!.

yeah but detecting and reading from web cam wouldnt work in snap

The objects that are not native from Snap! absolutely had to be written in JS, but as our mentor said,
we can place blocks from parts of the code that can be understandable in any language. :~)

everything pretty much has to be written in js

If you're thinking the reason is because you can't get the pixels of the camera, well, you'd be wrong. You can use this block to get a snapshot of the camera as a costume.

untitled script pic

You think thats the problem?! now with that try locating and reading and decoding the QR code

incredibly complex

Well, you never said why you couldn't detect qr codes. As for finding the qr code, maybe just search for a qr code pattern in the image. Also, if someone was able to create a somewhat working qr code scanner in scratch, you don't really have much excuse for not being able to do it in snap.

does that work?

It's not perfect, but yes (or at least it can only scan qr codes that are encoded with byte-encoding).

damn. ig i got no excuse. you wanna help?

I'm sorry, I don't really know anything about scanning qr codes, and I'm already caught up in some other projects. But you may want to read the wikipedia article on qr codes. I think the best way to learn how qr codes work, is by making a qr code generator first, then work on a qr code scanner.

i could if i could turn a costume into a png that i cld use in a url