Using barecode scanner within iPhone application

Tell us about your wildest feature dreams. Or just harmless suggestions for improvement.
Post Reply
dark_nights
Inductee
Inductee
Posts: 1
Joined: Thu Feb 18, 2010 5:32 am

Using barecode scanner within iPhone application

Post 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.
User avatar
Conor
Top Dog
Posts: 5344
Joined: Sat Jul 03, 2004 12:58 pm
Contact:

Re: Using barecode scanner within iPhone application

Post 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)
Post Reply