26

My understanding in that a QR Code contains the data that is being read, and it does not require an internet connection to interpret the code. If this is the case, why do I get a different QR Codes every time I recreate a new QR with the same data?

I see definite differences if I use two different generators to create the same code. For instance, creating a URL link to http://www.yahoo.com creates two different QRs on these sites:

http://qrcode.kaywa.com/

http://zxing.appspot.com/generator/

Chris
  • 5,485
  • 15
  • 68
  • 130
  • 1
    How do you create the QR codes? Mine look the same, given the same content. – Jim Brissom Dec 29 '10 at 02:50
  • Identical questions (that are still open) [here](https://stackoverflow.com/q/4551110) and [here](https://stackoverflow.com/q/5493183). – tanius Sep 26 '21 at 19:04

3 Answers3

40

Mind that QR codes may use 4 different levels of error correction, labeled L, M, Q and H, respectively. Also, there is a process called masking, with the intention to increase the robustness of the reading process by distributing the black and white pixels over the image. There are also a number of masking patterns available, which can produce a valid QR code, but with different results. Read the specification for more info on those.

That being said, given a generator with the same settings, the output should always be the same, which is what your original question was about. Now, comparing two different generators might result in observing two different images due to the effects mentioned above.

Spec link, randomly picked off of Google (I'm mentioning this because ISO is selling the QR specification as a standard document):

http://raidenii.net/files/datasheets/misc/qr_code.pdf

Jim Brissom
  • 31,821
  • 4
  • 39
  • 33
1

The two sites might use two different versions of the QR code standard.

This picture shows that certain areas of the code hold information about the version and format used, so two QR codes might differ in those areas. I really don't know how QR codes work, but I assume that a different version or format would also mean that the rest of the data is ordered or encoded differently.

http://en.wikipedia.org/wiki/File:QR_Code_Structure_Example.svg

dzollman
  • 27
  • 1
0

They are same... Google & Nokia

alt text

alt text

Kaywa is different on eye but contains same info.

Anyway, QRC is not different on every generation.

Dejan Marjanović
  • 19,244
  • 7
  • 52
  • 66
  • 2
    I guess that is the real question... why does the Kaywa site create a code that looks different ? – Chris Dec 29 '10 at 18:49