Have an amazing solution built in RAD Studio? Let us know. Looking for discounts? Visit our Special Offers page!
CodeDelphiRAD Studio

Learn How to Deploy Flexible Optical Barcode Recognition For Delphi VCL On Windows With WINSOFT Library

  1. 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.

 

 

obrlib-1

Then the selected picture is scanned using the TObr component (the ‘scanner’) as it follows:

If no code is detected (found) after decoding the picture, the TMemo components writes “No barcode found” in the field at the bottom.

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).

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.


Reduce development time and get to market faster with RAD Studio, Delphi, or C++Builder.
Design. Code. Compile. Deploy.
Start Free Trial   Upgrade Today

   Free Delphi Community Edition   Free C++Builder Community Edition

Related posts
CodeDatabaseDelphiRAD Studio

Quickly Define Powerful Client-Side Aggregating Formulas With FireDAC Using TFDQuery In Delphi

CodeDatabaseDelphiRAD Studio

Quickly Learn How Easy It Is To Bind DataSets To Visual Controls In Delphi With LiveBindings

C++CodeRAD Studio

Learn How To Use C++ Incomplete Return Types In Windows Development

C++Delphi

Create Beautiful Windows Applications With Visually Stunning VCL Styles For Delphi And C++

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

IN THE ARTICLES