有人能告诉我zxing解码QR码的一般步骤吗? [英] Could anybody tell me about the general steps to decode QR code in zxing?

查看:235
本文介绍了有人能告诉我zxing解码QR码的一般步骤吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想阅读zxing源代码,但在此之前,我希望有人能告诉我zxing中解码QR码的一般步骤.
在此先感谢您.

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.

推荐答案

我无法告诉您有关zxing代码的详细信息,但是读取QR的一般过程是:

-找到取景器和对齐方式(嵌套的黑色/白色正方形);

-确定单元格的大小,可能是通过定时模式"(点线)确定;

-现在您可以预测任何单元格的坐标;

-对单元进行二值化处理,并按读取顺序对其进行重新排序以形成位流;

-将错误检测/纠正算法应用于比特流;

-根据编码格式将校正后的流解码为字符.
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.


这篇关于有人能告诉我zxing解码QR码的一般步骤吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆