Click here to Skip to main content
15,885,943 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to read zxing source code, but before doing that i hope someone can tell me the general steps to decode QR code in zxing.
Thanks in advance.
Posted

1 solution

I can't tell you specifics about the zxing code, but the general procedure to read a QR is:

- locate the finder and alignment patterns (nested black/white squares);

- determine the cell size, possibly from the "timing patterns" (dotted rows);

- now you can predict the coordinates of any cell;

- binarize the cells and reorder them in the reading order to form a bit stream;

- apply the error detection/correction algorithm to the bit stream;

- decode the corrected stream to characters depending on the encodation format.
 
Share this answer
 
Comments
StarStarStarStarStar 23-Apr-12 8:34am    
thanks your reply!
StarStarStarStarStar 16-May-12 10:19am    
Hi YvesDaoust! I think you said "cell" in case is light/dark module ? i'm not sure i think right, so could you explain for me?
YvesDaoust 16-May-12 11:08am    
Yes, quite right. For me the module is more the size of the cells, but this is just a matter of convention.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900