The bardecode command provides an interface to the barcode reader toolkit from the shell. For example, the following command will scan an image file for barcodes and print the values: bardecode -t any -m -f somefile.tif Options are flags such as -m, which may or may not take an argument long options are property name
Overview The AllowDuplicateValues can be used to stop the toolkit from reporting duplicate barcodes on the same page in an image. This can be useful for images where the middle section of a barcode is badly damaged or missing. With the property set to TRUE the toolkit may report that there are 2 barcodes of
BitmapResolution is the resolution of the bitmap to be scanned in ScanBarCodeFromBitmap, in dots per inch. This value only effects the expected size of the quiet area around a barcode and for most images can be left to the default value. Type: SHORT Default value: 200
When True the toolkit will only report Code 39 barcodes where the last character is a valid checksum for the rest of the barcode. The toolkit expects a Code 39 checksum to be calculated using modulus-43. The following table shows the character and value used for the calculation… Char Value Char Value Char Value Char Value 0 0 B 11 M 22 X 33 1 1 C 12 N 23 Y 34 2 2 D 13 O 24 Z 35 3 3 E 14 P 25 – 36 4 4 F 15 Q 26 . 37 5 5 G 16 R 27 space 38
When set to TRUE the toolkit will only report Code 39 barcodes that start and end with a * character. Setting this property to FALSE is not recommended for the following reasons: It is not a valid Code 39 barcode without the start and stop * character. Without a start/stop * character, a Code 39
ColorThreshold is the color value used by the control to decide whether a pixel should be considered to be black or white. The value should be in the range 0 to 255. Please note that if this property is set to a non-zero value than ColorProcessingLevel is effectively set to a value of 0. It is recommended to
Overview A UPC-E barcode is actually an EAN-13/UPC-A barcode that has had certain digits removed to create an 8 digit number. Only certain EAN-13/UPC-A barcodes can go through this process. For example, the UPC-A barcode “023456000073 ” can be suppressed to the UPC-E value “02345673” and restored to it’s original value by the barcode reader. The Softek
Some barcodes cannot be read because the process of scanning or faxing has split or merged bars together. When ErrorCorrection is set to True to toolkit will, where possible, make a best guess at such barcodes. Note that this property currently only applies to Code 39 and Code 39 Extended barcodes. Type: BOOL Default value: FALSE
A Code 39 barcode can be used to represent the entire ASCII-128 symbol set by using 2 normal Code 39 characters to represent one character in the ASCII-128 symbol set. A barcode reader cannot distinguish between normal and extended Code 39 barcodes and so the ExtendedCode39 property must be set to TRUE when reading barcodes
Overview The LineJump property controls the frequency with which the toolkit samples scan lines as it moves through an image. Increasing the value of the LineJump property will increase the speed at which an image is processed but may decrease the read rate. The SkewLineJump property is used in a similar way when searching for skewed barcodes.