Optical Barcode Recognition for FireMonkey

Optical Barcode Recognition for FireMonkey

OBR
Delphi and C++ Builder optical barcode recognition component for FireMonkey.
  • uses ZBar bar code reader library
  • supports EAN-13/UPC-A, EAN-8, UPC-E, Code 39, Code 93, Code 128, Codabar, GS1 DataBar, GS1 DataBar Expanded, Interleaved 2 of 5, SQ Code and QR Code barcodes
  • supports Windows, macOS, Linux, iOS and Android
  • available for Delphi/C++ Builder XE2 - 12
  • source code included in registered version
  • royalty free distribution in applications

Download and order

FAQ

How can I recognize UTF-8 encoded QR code?
Switch-on binary data on QR symbology and then use TObrSymbol.DataUtf8 property:
FObr.Active := True;
FObr.Configure(syQrCode, saNone, coBinary, 1); // switch-on binary data
							

How can I disable recognition of some symbology?
Add this line before scaning barcode:
FObr.Configure(syQrCode, saNone, coEnableSymbology, 0); // disable QR code symbology
							

How can I enable recognition of some symbology?
Add this line before scaning barcode:
FObr.Configure(syQrCode, saNone, coEnableSymbology, 1); // enable QR code symbology
							

How can I scan UPC/EAN barcodes with 5 digit extension?
Add this line before scaning barcode:
FObr.Configure(syEan5, saNone, coEnableSymbology, 1);
							

How can I fix "cannot find -lzbar" error?
Path to the libzbar.a library has to be added to "Search path" using Delphi "Project/Options" menu and "Building/Delphi Compiler/Search path" item:
  • Android 32-bit target: add folder "c:\Program Files (x86)\Winsoft\OBR for FireMonkey\Library\Android\armeabi-v7a" to "Search path"
  • Android 64-bit target: add folder "c:\Program Files (x86)\Winsoft\OBR for FireMonkey\Library\Android\arm64-v8a" to "Search path"
  • iOS Device 64-bit target: add folder "c:\Program Files (x86)\Winsoft\OBR for FireMonkey\Library\iOSDevice" to "Search path"

How can I fix "[ldandroid Error] "ld" exited with code 1." in C++Builder?
Add these files to your project in C++Builder Project Manager:
"c:\Program Files (x86)\Winsoft\OBR for FireMonkey\Library\Android\armeabi-v7a\libzbar.a"
"c:\Program Files (x86)\Winsoft\OBR for FireMonkey\Delphi104-Android32\libWinsoft.FireMonkey.ObrP.a"

Related links