2

Similar: Does anyone know of a C/C++ Unix QR-Code library?

I tried libqrencode but apparently it's only able to generate a QR-Code. However, I need a library that reads the data from a photo of a printed QR-Code.

It must be a C, C++ or Objective-C library and it has to compile on BSD systems. On my platform, Java and .NET are not available.

What libraries can I use?

Thanks.

Community
  • 1
  • 1

2 Answers2

2

Try using libdecodeqr , it doesn't seem to be updated for over a year but a Google search reveals that it still works.

ismail
  • 46,010
  • 9
  • 86
  • 95
2

zxing (http://code.google.com/p/zxing/) is probably the most well-known and used in a number of barcode/qr-code apps. The original/primary code is Java but it includes a C++ port that is pretty actively maintained, particularly for QR codes.

The C++ library does not (currently) have an encoder, but it sounds like you want a decoder.

smparkes
  • 13,807
  • 4
  • 36
  • 61
  • I've been tinkering with this library and I've gotta say that it is amazingly fast at recognizing QR codes. It's much faster than the RedLaser app, but that may be because RedLaser is looking for multiple bar code types. – MBCook Dec 26 '10 at 00:07
  • RedLaser actually uses zxing, though they also apparently have their own code: http://redlaser.com/Attribution.aspx. But if you're using the zxing demo code, I'm pretty sure by default it only has the qr decoder enabled, which definitely makes it faster. The 1D support in the C++ port isn't used as widely as the qr code and isn't maintained as well as the qr code (or the 1D codes in the java port). – smparkes Dec 26 '10 at 00:20