The following code shows how the Softek barcode Reader Toolkit can be used from Borland Delphi to extract barcode information from images and memory bitmaps. Click here for some tips on using the toolkit with Delphi 2009. Click here to download a Borland Delphi example in a zip file. The following code was kindly provided by Marian Aldenh?vel of
Example: Code 128 is one of the more complex linear barcodes, with a greater capacity than Code 25 or Code 39, but requiring better quality images for reliable recognition. Key features: 4 different width of bar/space. 3 symbol sets (A, B and C). Symbol set C encodes pairs of digits and is one of the
Example: Code 2 of 5 is a popular barcode for encoding numeric data. Key features: 2 different width of bar/space. Symbol set consists of digits 0-9 Each character is made up of 2 wide and 3 narrow elements. Start sequence is narrow bar, narrow space, narrow bar, narrow space. End sequence is wide bar, narrow
Example: Code 3 of 9 is the most popular barcode for encoding alpha-numeric characters. Key features: 2 different width of bar/space. Symbol set contains 43 characters: A-Z, 0-9, and -, ., *, $, /, +, %, SPACE. Each character is made up of 5 bars and 4 spaces with 3 wide bars/spaces and 6 narrow
When distributing the SoftekBarcodeLib2.dll component you may find that you get an error message similar to the following: System.IO.FileLoadException: Could not load file or assembly ‘SoftekBarcodeLib2, Version=X.X.X.X Culture=neutral, PublicKeyToken=3c09a6b205d2b618’ or one of its dependencies. This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem. (Exception from
The main requirement is for each black or white bar in a barcode to be clearly visible on the image. All barcodes have at least 2 sizes of bar and the image needs to be of high enough quality to show this. For example, a Code 39 barcode consists of 9 bars per character, of
Overview CodabarMaxVariance is the maximum percentage variance that a character in a codabar barcode can have from the average for that barcode. Type: SHORT Default value: 20 Note: This is an Advanced property and can only be set using LoadXMLSettings
Overview When True the toolkit will only report Code 25 barcodes where the last character is a valid checksum for the rest of the barcode. The toolkit expects a Code 25 checksum to be calculated using the following method: Sum all of the even positioned characters (the right hand message character is always even), and multiply by 3.
Overview ColorChunks specifies how many sections a scan line of an image should be broken into when calculating threshold levels for black and white pixels. Type: SHORT Default value: 1 Note: This is an Advanced property and can only be set using LoadXMLSettings
Overview If the Despeckle property is set to TRUE and the NoiseReduction property is none zero, then the toolkit removes white speckles inside the bars of a barcode before removing black marks from the spaces between bars. Type: BOOL Default value: FALSE