5

Possible Duplicate:
Is there a barcode recognition framework for iOS?

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 ?

Community
  • 1
  • 1
ck8414
  • 191
  • 1
  • 1
  • 6

2 Answers2

23

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

Update on May-2019

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;

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

swiftBoy
  • 35,607
  • 26
  • 136
  • 135
  • For the sake of completeness, this should be mentioned: http://docs.scandit.com/stable/ios/ – mindbomb Jul 31 '15 at 23:31
  • @mindbomb thank you for the suggestion, updated answer with **Scandid lib** – swiftBoy Jul 01 '16 at 07:20
  • ZXing is currently only for Android – Nativ May 28 '19 at 14:42
  • @Nativ thank you for you suggestion, updated!! – swiftBoy May 28 '19 at 14:46
  • Nowadays the most important APIs are probably the built-in ones. iOS: https://developer.apple.com/documentation/vision?language=objc and Android: https://developers.google.com/vision/android/barcodes-overview – Benoit Jan 14 '20 at 10:59
  • For completeness, this one was the very first available for iOS (before RedLaser for those old enough to remember - and still available): https://www.visionsmarts.com/index.html#products – Benoit Jan 14 '20 at 11:02
7

The ZBAR iPhone sdk is very much effective for reading bar codes and qrcodes. You can find the sdk files and how to use the sdk tutorials in here

swiftBoy
  • 35,607
  • 26
  • 136
  • 135
odukku
  • 366
  • 5
  • 17