用于条形码阅读器的iOS库 [英] iOS library for Barcode reader

查看:112
本文介绍了用于条形码阅读器的iOS库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


可能重复:

iOS是否有条形码识别框架?

哪个是iOS条形码阅读器最好的免费sdk或库?我目前正在为我的公司实施一个应用程序,我们想要支持条形码和二维码扫描,有人可以建议我在iOS4,5上运行最好的sdk吗?

Which is the best free sdk or library for iOS barcode reader? i am currently implementing an app for my company and we want to support barcode and QR code scan, can someone please suggest me the best sdk that works on iOS4,5 ?

推荐答案

我建议你,看看下面一些用于条形码扫描的好API

I would suggest you, have a look on below some good API for bar code scanning

  • ZXing
  • ZBar bar code reader
  • shopsavvy
  • Softek Barcode Reader SDK
  • Scandit Barcode Scanner (not free)

如果你使用ZBar API,这是代码片段

Here is the code snip if you use ZBar API

ZBarReaderController *reader = [ZBarReaderController new];
reader.readerDelegate = self;

    //... code to get image

CGImageRef imgCG = image.CGImage;


id<NSFastEnumeration> results = [reader scanImage:imgCG];
ZBarSymbol *symbol = nil;

for(symbol in results)
    // EXAMPLE: just grab the first barcode
    break;
resultText.text = symbol.data;

同时确保PL不要忘记为AVFoundation,CoreVideo和CoreMedia框架使用弱链接

Also Make sure PL don't forget to use weak link for AVFoundation, CoreVideo and CoreMedia framework

这篇关于用于条形码阅读器的iOS库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆