条码 SDK 支持 iPhone 的一维码、二维码、数据矩阵等
我需要一个条码引擎来支持 iPhone 的以上 3 种条码类型(一维、QR 码、数据矩阵)。我尝试了 zxing、zbar,就我而言,它们不支持数据矩阵。我还找到了一些商业版本。
但我正在寻找一个免费的 SDK。
I need a bar code engine to support above 3 bar code types (1D, QR code, data matrix) for iPhone. I tried zxing, zbar which in my case doesnt support data matrix. I found some commercial versions also.
But I am looking for a free SDK.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
这个问题很老了,但为了完整起见,我还是想回答它。我会推荐 zxing,因为它支持问题中提到的所有代码。
但是,从 iOS7 开始,还可以选择使用 内置扫描仪API(经过几个小时的测试,我发现它比zxing更快、更准确)。我还发现 Cocoa API 更容易与自定义 UI 集成。缺点是(据我所知)不支持 Data Matrix。
第三种选择是巧妙地将两者结合起来,也许还能优雅地回退到 iOS7 之前的设备。
This question is very old, but I'd like to answer it anyway for completeness. I would recommend zxing, as it supports all the codes mentioned in the question.
However, since iOS7 there is also the option of using the built-in scanner API (which I have found quicker and more accurate than zxing after a couple of hours testing). I also found the Cocoa APIs slightly easier to integrate with a custom UI. The downside is that (to my knowledge) Data Matrix is not supported.
A third option would be to use a clever combination of both, maybe also to fall back gracefully for pre-iOS7 devices.
iPhone 没有免费的一维码、二维码、数据矩阵 SDK。 zbar 不支持,我尝试过 zxing 它的工作,但分配的后台工作必须使用 zxing sdk 来完成。
There is no free SDK for1D, QR code, data matrix for Iphone. zbar is not supporting , ive tried zxing its working ,but allot of background work have to be done with zxing sdk.
从 iOS 8 开始,AVFoundation 支持 Data Matrix。请参阅:
https://developer.apple.com/library/prerelease/ios/documentation/AVFoundation/Reference/AVMetadataMachineReadableCodeObject_Class/index.html#//apple_ref/doc/constant_group/Machine_Readable_Object_Types
As of iOS 8, Data Matrix is supported in AVFoundation. see:
https://developer.apple.com/library/prerelease/ios/documentation/AVFoundation/Reference/AVMetadataMachineReadableCodeObject_Class/index.html#//apple_ref/doc/constant_group/Machine_Readable_Object_Types