Page 1 of 1

Using barecode scanner within iPhone application

Posted: Thu Feb 18, 2010 5:37 am
by dark_nights
Hello,
I found this barcode scanner on the internet and it seems to be very interesting. I would like to know if is it re-usable in an iPhone application, and which files do we have to keep ? How to replace the Mac camera with the iPhone's one.

Thank you for your help.
Best regards.

Re: Using barecode scanner within iPhone application

Posted: Thu Feb 18, 2010 8:01 am
by Conor
The generic barcode decoding part of the code would be reusable with the iPhone. What you would want to keep are the methods starting at processPixelbuffer: and below in MyBarcodeScanner.m The scanForBarcodeWindow: method you would need to replace with a version for the iPhone that is able to return a pixel buffer or create one from the relevant delegate methods on the iPhone. However, there are quite a number of frameworks out there for barcode scanning on the iPhone that will save you some work, although none that I know of are open source:

XZing (only does QR codes)
barcodeapp (designed for iPhone but based on XZing above)
Red Laser (expensive)