- Introduction
OBR (Optical Barcode recognition) is a VCL type library (Windows platform only). Its main purpose is to decode QR code and Barcode images.
In the next short video you will see installation instructions:
2) Components in the Demo and what they do
There are two panels. One is at the top, containing the button for the picture choise. In the middle there is a Scroll box component (for scrolling) and a Timage component inside it for the chosen picture. At the bottom there is another panel again, containing the TMemo component . All combined they create the windows that shows up with button, image and text at the bottom. You can see it in a short video below:
Clicking on the button executes the TOpenPictureDialog component which opens a dialog for selecting a picture. The selected picture is loaded in an TImage component and shown on the main empty window.
[crayon-676301bc84488371289291/]
Then the selected picture is scanned using the TObr component (the ‘scanner’) as it follows:
[crayon-676301bc8448f671619286/]If no code is detected (found) after decoding the picture, the TMemo components writes “No barcode found” in the field at the bottom.
[crayon-676301bc84491384801324/]If code is detected by the TObr component, an OnBarcodeDetected event is fired. The Result from the TObr scanner is generated in this event. To get all the scanned symbols, we use an TObrSymbol which is an item of the OBR list. In this case the list contains only one item. The TObrSymbol breaks down the scanned result on different parts. Each part contains different information (part of the result in text).
[crayon-676301bc84493641686988/]The code for this OBR demo can be downloaded at:
https://winsoft.sk/download/obr.zip
Head over and find out more info about the OBR library from WINSOFT for use with Delphi.