zxing 在哪里检查亮度、取景器图案和纠错级别
任何人都知道 zxing 库(Java 中)在哪里检查亮度和其他会影响 QR 码可读性的因素?
例如,如果亮度低于某个数字,则会显示一条消息“亮度低”。这个数字到底是在zxing库中哪里查到的呢?还有其他已检查可扫描性的因素在哪里?
我已经研究了 LuminanceSource 和 Detector 库,但没有找到针对这些库的具体数字或功能检查。
另外,为了确保二维码可扫描,我需要检查哪些因素?
Anyone knows where does zxing library (in Java) check for Luminance and other factors that would affect the readability of a QR code?
For example, if the luminance is lower than some number, it will show a massage saying "Luminance is low". Where exactly is this number checked in the zxing library? And also where are the other factors that have been checked for scannability?
I have looked into LuminanceSource and Detector libraries, but didn't found that specific number or function checking for these.
Also what are the all factors that I need to check to make sure the QR code is scannable?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你看过源码吗?很清楚。
LuminanceSource
不是这个地方;查看HybridBinarizer
了解亮度。不存在“可扫描性检查”这样的事情。qrcode.Detector
调用FinderPatternFinder
来定位查找器模式。我不知道您所说的纠错级别是什么意思,但是common.reedsolomon
包执行纠错,您可能可以通过名称猜到。Did you look at the source? It's pretty clear.
LuminanceSource
is not the place; look atHybridBinarizer
for luminance. There is no such thing as a "check for scannability".qrcode.Detector
callsFinderPatternFinder
to locate finder patterns. I don't know what you mean by error correction level but thecommon.reedsolomon
package performs correction, as you can probably guess just by the name.