Android 上的 ZXing PDF417

发布于 2025-01-04 18:32:52 字数 439 浏览 3 评论 0原文

是否有人能够使用 ZXing Android 操作系统上的库?他们支持这一点 - 根据他们的页面,它处于“alpha”阶段。

我们并不是在寻找完美的解决方案 - 由于 PDF417 非常复杂并且需要具有自动对焦功能的非常好的相机,因此我们可以接受它只能在少数预先选择的高端设备上工作。

我们还尝试了 Android Market 上提供的 条码扫描仪 + - 它在设置中具有 PDF417 选项,但是无论我们读什么,它总是失败。

我们也在 stackoverflow 上寻找商业 SDK,但没有成功。

任何帮助表示赞赏。

亲切的问候, 斯坦恩

Was anybody able to read the PDF417 barcode with use of the ZXing library on the Android OS? They are supporting this - and according to their page it is in 'alpha' stage.

We are not looking for perfect solution - since the PDF417 is pretty complex and needs a very good camera with auto-focus, we can accept that it will be working only on few pre-selected high end devices.

We have tried also the Barcode Scanner + available on the Android Market - it has the PDF417 option in the settings, but whatever we read it always fails.

We were looking also for commercial SDK, also here on stackoverflow, but with no luck.

Any help is appreciated.

Kind Regards,
STeN

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(6

夕色琉璃 2025-01-11 18:32:52

这实际上取决于您的期望。简单的 PDF417 可以立即读取,例如... 这个这个

此内容永远不会被扫描。

边界是小型或中等复杂的内容:示例 1示例 2

我可以阅读第一个,但不能阅读第二个,即使第一个更密集 - 大小有帮助。

  • 确保启用PDF 417解码;默认情况下关闭
  • 需要安静区域(代码周围的空白区域)
  • 焦点和光线有很大帮助

It really depends on what you expect. Simple PDF417 reads pretty instantly, like... this or this.

This will never be scanned.

Borderline is stuff that is small or moderately complex: example 1 and example 2.

I can read the first but not the second, even though the first is denser -- size helps.

  • Make sure to enable PDF 417 decoding; it's off by default
  • Quiet zone (white space around the code) is required
  • Focus and light help a lot
冷清清 2025-01-11 18:32:52

您可以尝试PDF417.mobi SDK。如果配备自动对焦摄像头,它应该适用于低端手机。它是一个商业库,但对开发人员和非商业目的免费。

您可以在此处尝试演示,或直接使用< a href="https://github.com/PDF417/android" rel="nofollow">GitHub。
官方网站在这里 http://pdf417.mobi/

免责声明:我是 PDF417 团队的一员。手机

You can try PDF417.mobi SDK. It should work on low-end phones if equipped with auto-focus camera. It's a commercial library, but free for developers and non-commercial purposes.

You can try the demo here or play with code directly from GitHub.
Official web site is here http://pdf417.mobi/

Disclaimer: I'm part of the team working on PDF417.mobi

风向决定发型 2025-01-11 18:32:52

已经使用过,可以扫描PDF417格式。请务必尝试使用包含自动对焦相机的小工具。已经在三星 Galaxy Tab 上尝试过了,效果非常好。

Have used , It can scan PDF417 format. Make sure you give a try with a Gadget containing Auto Focus camera. Have tried It on Samsung Galaxy Tab it works like a charm.

想你的星星会说话 2025-01-11 18:32:52

Zxing的解决方案对我不起作用。我在我的三星充电器上使用了 DataSymbol Decoder(打开二维码,默认情况下它们是关闭的)。不到一秒钟,我就拿到了驾照……

Zxing's solution did not work for me. I used DataSymbol Decoder (turn on 2d codes, by default they are off) on my samsung charge. In less than a second I captured my drivers license...

︶葆Ⅱㄣ 2025-01-11 18:32:52

我得到了与 @sean-owen 描述的类似的结果,因为只读取了简单的 PDF417。感觉 ZXing 库没有对 PDF417 提供与 QR 码相同的纠错功能。然而,在用户的帮助下,我们能够消除噪音并创建一个人工安静区域,方法是:

  • 要求用户将手机保持在横向模式(这样可以最大化从相机捕获的像素,即使在 640x480 模式下)
  • 要求用户适应50:18 剪切矩形内的条形码(这个比例似乎最适合美国驾驶执照,这样的剪切矩形将使用户能够剪掉大部分噪音)
  • 允许用户控制焦点、倾斜扭曲

通过遵循上述内容,甚至一些可以扫描众所周知的困难 PDF417 图像。

I got similar results as described by @sean-owen in that only the simple PDF417 were being read. It feels like the ZXing library doesn't have the same error correction for PDF417 that it does for QR Codes. However, with user assistance we were able to eliminate noise and create an artificial quiet zone by:

  • require the user to hold the phone in landscape mode (this maximizes the pixels captured from the camera, even in 640x480 mode)
  • require the user to fit the barcode inside a 50:18 clipping rectangle (this ratio seems to best fit the US Driver's License and such a clipping rectangle will empower the user to clip away most of the noise)
  • allow the user control focus, tilt distortions

By following the above, even some of the notoriously difficult PDF417 images can be scanned.

橘虞初梦 2025-01-11 18:32:52

Google 的 ML KIT 条形码扫描,是 Google 移动设备的一部分Vision 库列出了对 PDF-417 条形码的支持。

它自动解析以下支持格式的 QR 码、Data Matrix、PDF-417 和 Aztec 值:

  • URL
  • 联系信息(VCARD 等)
  • 日历事件
  • 电子邮件
  • 电话
  • SMS
  • ISBN
  • WiFi
  • 地理位置(纬度和经度)
  • AAMVA 驾驶执照/ID

查看入门页面或克隆GIT 项目开始使用。

Google's ML KIT Barcode Scanning which is part of google's Mobile Vision library lists support for PDF-417 Barcodes.

It automatically parses QR Codes, Data Matrix, PDF-417, and Aztec values, for the following supported formats:

  • URL
  • Contact information (VCARD, etc.)
  • Calendar event
  • Email
  • Phone
  • SMS
  • ISBN
  • WiFi
  • Geo-location (latitude and longitude)
  • AAMVA driver license/ID

Review the Getting Started Page or clone GIT project to get started.

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