Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS library for Barcode reader [duplicate]

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 ?

like image 432
ck8414 Avatar asked Jan 25 '13 00:01

ck8414


People also ask

Can you scan a barcode twice?

The bar code will program the scanner not to scan the same bar code twice in a row unless the bar code is removed from the scan field or a different bar code is scanned in between.

Can you replicate a barcode?

Barcodes are inherently copyable. If you can see it, an attacker can forge it. Instead, you'll need a different approach to securing the data. You could physically hide the barcode until it's time to scan it.

Does iOS have barcode scanner?

Open the Camera app from the Home Screen, Control Center, or Lock Screen. Select the rear facing camera. Hold your device so that the QR code appears in the viewfinder in the Camera app. Your device recognizes the QR code and shows a notification.


2 Answers

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

Update on May-2019

  • ZXing (Now only available for Android)
  • ZBar bar code reader
  • shopsavvy
  • Softek Barcode Reader SDK
  • Scandit Barcode Scanner (not free)

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

like image 100
swiftBoy Avatar answered Oct 04 '22 21:10

swiftBoy


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

like image 28
odukku Avatar answered Oct 04 '22 21:10

odukku