zxing 在哪里检查亮度、取景器图案和纠错级别

发布于 2024-12-26 05:23:57 字数 218 浏览 2 评论 0原文

任何人都知道 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

惜醉颜 2025-01-02 05:23:57

你看过源码吗?很清楚。 LuminanceSource 不是这个地方;查看HybridBinarizer 了解亮度。不存在“可扫描性检查”这样的事情。 qrcode.Detector 调用 FinderPatternFinder 来定位查找器模式。我不知道您所说的纠错级别是什么意思,但是 common.reedsolomon 包执行纠错,您可能可以通过名称猜到。

Did you look at the source? It's pretty clear. LuminanceSource is not the place; look at HybridBinarizer for luminance. There is no such thing as a "check for scannability". qrcode.Detector calls FinderPatternFinder to locate finder patterns. I don't know what you mean by error correction level but the common.reedsolomon package performs correction, as you can probably guess just by the name.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文