Live data from Hacker News

Creating a QR Code step by step

nayuki.io

41–49 of 49 posts

Re: Creating a QR Code step by step

#41
post #14

Earlier quoted context omitted.

The commentary mocking people for their poor English, followed by disparaging remarks about an entire country as if the email senders represent a typical sample from that nation, says more about the blog owner than about the email senders themselves. The blog owner exudes elitist vibes in the commentary. A quick skim of the blog reveals a request for Bitcoin donations, suggesting $3 as the amount, without considering…

There are many genuinely talented and accomplished computer scientists from and in India; however, if you are an internet personality and you are constantly bombarded with blatant requests, or even demands, which are indeed poorly written and come off as just trying to get something from you, it points to a possible culture difference. A lot of these requests come from students who are looking for shortcuts, or think…

> however, if you are an internet personality and you are constantly bombarded with blatant requests, or even demands, which are indeed poorly written and come off as just trying to get something from you, it points to a possible culture difference

Since I backpacked for 5 years, I started to have a shallow understanding of culture differences but enough to make me think that people from two or three cultures aren't really great to interact with. I keep these to myself, voicing it would say more about me than them.

Re: Creating a QR Code step by step

#42
post #28
post #14

Earlier quoted context omitted.

The commentary mocking people for their poor English, followed by disparaging remarks about an entire country as if the email senders represent a typical sample from that nation, says more about the blog owner than about the email senders themselves. The blog owner exudes elitist vibes in the commentary. A quick skim of the blog reveals a request for Bitcoin donations, suggesting $3 as the amount, without considering…

Dude really doesn’t like Indians huh. I can see why these racists come to the conclusion that all Indians speak a certain way. If they see something written with a few quirks common to Indian English they confirm their bias that all Indians speak and write that way. If they see text without that tell, their bias is still confirmed because they conclude this person must have grown up elsewhere. For the racists at the…

I totally agree with you. But I'm curious about one thing: how do most Indians react to Indians scamming people from all around the world? Is there a movement to push back against them or are we (the world) on our own? Same thing I wish to ask the Nigerians about the Nigeria princes.

Re: Creating a QR Code step by step

#44
post #6

This is pretty awesome. I would like to see the same thing for the decoder.

Yeah, I've been looking for a guide to implementing qr readers from 0. Explicitly not 'oh just plug in this CV library in, feed it the image and it spits out the result' like all the stuff I find in Google on the topic. I am looking for a guide that walks you through implementing all the algorithms necessary after you have the decoded raw image data.

find a copy of the standard. A version of it is floating online. The latest version just added some clarifications, but is not needed. I built an implementation out of that, though the error correction part, of course, I had to learn somewhere else. But the spec is very readable

Re: Creating a QR Code step by step

#45
post #28

Earlier quoted context omitted.

Dude really doesn’t like Indians huh. I can see why these racists come to the conclusion that all Indians speak a certain way. If they see something written with a few quirks common to Indian English they confirm their bias that all Indians speak and write that way. If they see text without that tell, their bias is still confirmed because they conclude this person must have grown up elsewhere. For the racists at the…

I totally agree with you. But I'm curious about one thing: how do most Indians react to Indians scamming people from all around the world? Is there a movement to push back against them or are we (the world) on our own? Same thing I wish to ask the Nigerians about the Nigeria princes.

I think no one, from any country, has any sympathy for scammers. FWIW, Indians suffer plenty from the same scammers because it's possible to target Indians much more easily. You don't need to figure out international payments, accents, international calling - just pick up the phone and go.

I would challenge the notion that a "movement" can push back against criminals. This is a law enforcement issue and a difficult one at that because law enforcement doesn't have real time insight into money transfers.

If it is any comfort, India is a democratic country and the government is somewhat receptive to the needs of the people. With Indian people suffering from financial crime and complaining about it the government could start to crack down on it.

Re: Creating a QR Code step by step

#46
post #28

Earlier quoted context omitted.

Dude really doesn’t like Indians huh. I can see why these racists come to the conclusion that all Indians speak a certain way. If they see something written with a few quirks common to Indian English they confirm their bias that all Indians speak and write that way. If they see text without that tell, their bias is still confirmed because they conclude this person must have grown up elsewhere. For the racists at the…

I totally agree with you. But I'm curious about one thing: how do most Indians react to Indians scamming people from all around the world? Is there a movement to push back against them or are we (the world) on our own? Same thing I wish to ask the Nigerians about the Nigeria princes.

People in India suffer from these same scams, too. They are pissed.

I haven't lived in India for decades, but saw an interesting TV show about a famous phone phishing operation run out of a small village in Bihar state. It's fiction, but based on a real news report.

https://en.m.wikipedia.org/wiki/Jamtara_%E2%80%93_Sabka_Numb...

Re: Creating a QR Code step by step

#47
post #23
post #6

This is pretty awesome. I would like to see the same thing for the decoder.

Maybe you'll enjoy Piko and blinry's guide on reading QR codes without a computer: https://qr.blinry.org/

Yeah interesting, but not really any different than the original content. Maybe a little easier to grok.

I was looking for algorithms to extract out a QR code from an image.

Re: Creating a QR Code step by step

#48
post #6

This is pretty awesome. I would like to see the same thing for the decoder.

Same. I always marvel at how my phone can decode a badly lit, blurry, 1/4 out of frame QR code as quickly as it does.

My first instinct would be to go look at the discrete cosine transform that JPEG uses. But I don't know how to do the other parts like aligning and using the timing patterns.

Re: Creating a QR Code step by step

#49
post #17

Unfortunately it seems that every online explanation of QR codes always leaves out the Reed-Solomon error code calculation. The author here describes it as “long, tedious, and not very interesting”, but since everyone seems to think that, it is now very hard to find.

These two tutorials explain the error code calculations: https://www.thonky.com/qr-code-tutorial/error-correction-cod... https://dev.to/maxart2501/let-s-develop-a-qr-code-generator-...

Thank you so much! That's really helpful and enlightening.
Post reply on HN