问题描述
我必须通过应用程序显示PDF417条形码,这里我可以显示但如果我通过扫描仪读取它无法检测为PDF417条形码。
我发现通过条形码扫描仪识别PDF417条码有问题,我怀疑这是因为右指示器和左指示器的计算错误。
i在找到左指示符代码字和右指示符代码字时引用此等式。即
集群
左行指示器
群集0 30x + y
群集3 30x + z
群集6 30x + v
右行指标
群集0 30x + v
群集3 30x + y
群集6 30x + z
其中:
x =(行号 - 1)/ 3
y =(行数 - 1)/ 3
z =(纠错级别)* 3 +(行数 - 1)mod 3
v =数据列数 - 1
这里
行数= 8
行数从1到8
错误修正等级= 4
数据列数= 2.
我在做什么是对的?请在此建议。
我的尝试:
因此我计算了簇和左行指示器的计算,并且我已经使用字节级作为选项,其中数据必须转换为基本900.然后我采用2d数组,其中我按行排列数据。
I have to display PDF417 barcode through the application, here iam able to display but if i read through the scanner it is not able to detect as PDF417 barcode.
I am finding problem in identifying PDF417 barcode through barcode scanner, iam suspecting that is because the calculation of right indicator and left indicator is wrong.
i referred this equation in finding Left indicator code word and right indicator code word. i.e
Cluster
Left Row Indicator
Cluster 0 30x + y
Cluster 3 30x + z
Cluster 6 30x + v
Right Row Indicator
Cluster 0 30x + v
Cluster 3 30x + y
Cluster 6 30x + z
Where:
x = (row number - 1) / 3
y = (number of rows – 1) / 3
z = (error correction level) * 3 + (number of rows – 1) mod 3
v = number of data columns – 1
here
number of rows = 8
row number from 1 to 8
error correction level = 4
number of data columns = 2.
What iam doing is right? please do suggest, on this.
What I have tried:
So calculation of cluster and the for left row indicator i have calculated and i have used byte level as option where the data must be converted into base 900. then i have take 2d array where i placed data accourding by row wise.
推荐答案
这篇关于如何通过条形码扫描仪阅读PDF417条形码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!