5

I'm looking for any open-source software out there that takes an webcam stream and scans for a barcode, returning the value of the barcode in the current frame, if any. It would be preferred if it was in C, but any other languages are welcome. Note, I am not interested in using a mobile phone or a separate barcode scanner.

1 Answer 1

2

ZXing has Java and C++ ports. If you need to call it from C, you can always write a shim in C++ that exposed plain C calls.

ZXing is used a lot on mobile platforms but there's nothing inherently mobile in the core. You'd need to provide the appropriate interfaces for the platform that capture the video stream and call the ZXing functions. Not exactly what you need but see ,for example, ZXing.app.

The C++ port of ZXing has some support for 1D barcodes and is solid for QR codes. (1D codes are also more difficult to scan using webcams which are often fairly fixed-focus and low resolution.)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.