gpt4 book ai didi

debugging - 如何评估QR码的质量/正确性? (如何获得定量和定性的QR码特征)

转载 作者:行者123 更新时间:2023-12-04 07:01:11 28 4
gpt4 key购买 nike

我需要评估和比较QR Code生成库,并寻找逻辑参数来测量和比较输出。

Why do I need this? It seems that when I give two different QR generators the same input, different output seems to be generated, and I as a human can't tell which one is correct.

By correct I mean how much "QR" data is encoded/represented by my input, or is able to be read by cheap cell phones (larger blocks).



对于处理每个字节介于0x7f(127个十进制)或A0(160个十进制)之间的二进制数据,以及偶尔处理0到0x20(32个十进制)的值时,尤其如此

上面提到的问题区域也恰好与ISO IEC 8859 1字符集的无效或不可打印字符相关,因此库有可能将我的输入读取为一个字符串,或将其编码为2字节的UTF- 16个字符,还是谁知道!

如果有人知道我应该查看QR码的哪些方面的详细信息,或者更好的是,该应用程序显示了QR码的诊断数据,那将是完美的。

最佳答案

具有更多调试输出然后zxing的QR解码器是 http://qrlogo.kaarposoft.dk/qrdecode.html

根据其作者的说法,所使用的软件是纯JavaScript,因此可以在您自己的浏览器中运行。

启用调试输出的示例QR码解码(PNG由http://www.qrcode-monkey.de/编码):

left=2 right=22 top=2 bottom=22
size=21
matchVersion version=1 finder0=64 finder1=64 finder2=64
matchVersion version=1 timing0=1 timing1=1 alignment=1
matchVersion version=1 format_NW =9 0 format_NESW =9 1 format = 9 ecl = 1 mask = 1
matchVersion version=1 grades(F(V)TAF): 4444->4
findModuleSize version=1 grade=4 error_correction_level=1 mask=1
getCodewords mask=1 length=26
getCodewords = 64,55,70,86,194,0,216,32,80,246,228,98,160,0,236,17,236,17,236,237,167,185,237,199,28,244
setBlocks n_blocks_first=1 n_blocks_second=0 n_blocks=1 n_block_words_first=19 n_block_words_second=0 n_block_ec_words=7 total=26
setBlocks block 0 (26): 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25
RS calculateSyndroms: No errors
correctErrors in = 64,55,70,86,194,0,216,32,80,246,228,98,160,0,236,17,236,17,236,237,167,185,237,199,28,244
correctErrors out = 64,55,70,86,194,0,216,32,80,246,228,98,160,0,236,17,236,17,236
error_grade=4
extractData bytes in (19) = 64,55,70,86,194,0,216,32,80,246,228,98,160,0,236,17,236,17,236
extractData mode = 4
extract charcount = 3
extractData mode = 2
extractAlphanum charcount = 1
extractData mode = 1
extractNumeric charcount = 10
extractData mode = 0
extractData data(14) = 116,101,108,58,49,50,51,52,53,54,55,56,57,48

注意:嵌入的数据是 tel:1234567890

关于debugging - 如何评估QR码的质量/正确性? (如何获得定量和定性的QR码特征),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24974599/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com