Barcode Xpress for Linux
BX_AnalyzeParameters

Specifies the parameters that the barcode engine will use when analyzing an image for barcodes.

Declaration:

Copy Code
typedef struct tagBX_AnalyzeParameters {
    long ParametersVersion;
    _Bool AppendCheckSum;
    BX_Rectangle Area;
    BX_BarcodeType BarcodeTypes;
    _Bool IncludeControlCharacters;
    BX_InkColor InkColor;
    long MaximumBarcodes;
    long MinimumBarcodeSize;
    BX_Orientation Orientation;
    _Bool ReturnPossibleBarcodes;
    BX_AustralianPostDecodeType AustralianPostDecodeType;
    long ScanDistance;
} BX_AnalyzeParameters;

Members:

ParametersVersion long

Specifies the version of the analyze parameters structure. 

The only valid value is 1. Do not change this to any other value.

AppendCheckSum _Bool

Specifies if a checksum value is appended to the barcode during recognition.

If this property is set to true, checksum values will be appended to the result for barcode types that require a checksum. 

This property does not have an effect on barcode types which do not have a checksum or for which the checksum is optional.

The UPC and EAN codes always append the checksum character to the barcode results.

This is done regardless of this property's value.

Default value: false

Area BX_Rectangle

Specifies the area of an image to analyze for barcode recognition.

To search the entire image, all of the values must be set to 0.
If any value is set, then they must all be set.
The default value is {0,0,0,0}.

BarcodeTypes BX_BarcodeType

Specifies the types of barcodes to search during the recognition process.

By default, the barcode engine searches for all 1D barcodes. The 1D barcode set includes all types, except PatchCode, PostNet,
GS1 DataBar, IntelligentMail, Royal Post Mail 4-State,
Australian Post 4-State, QR Code, PDF417, Aztec and Data Matrix.

Multiple types of barcodes can be searched for by setting this to the ORed value of the types desired.
For example, to search for PDF417 and Code39 set the BarcodeTypes to BX_BarcodeType_Code39 | BX_BarcodeType_PDF417.

The default value is BX_BarcodeType_All1D.

IncludeControlCharacters _Bool

Specifies if control characters are added to the barcode value.

If this property is set to tue, the barcode control characters are included in the barcode read value. This has no effect for barcodes which do not support control characters.

InkColor BX_InkColor

Specifies what color of the barcode to search for.

The default value is BX_InkColor_Black.

MaximumBarcodes long

Specifies the maximum number of barcodes to return.

If more than this number of barcodes is found in the image, then the barcode engine will on return the number of barcodes specified.

The minimum value is 1.

The default value is 100.

MinimumBarcodeSize long

Specifies the minimum size of a barcode to return.

Setting this value to 0 indicates that any size barcode should be returned.

Any of the 4 edges of a barcode may pass this minimum size test to be returned (eg. A MinimumBarcodeSize of 100 would return a barcode with edge-lengths of [80, 85, 90, 100] because the fourth edge length is greater-than-or-equal to the minimum size). 

The default value is 0.

 

Orientation BX_Orientation

Specifies which direction to search for a barcode on the image.

Set this value to expand or limit which direction to search for a barcode.

For example, to only find barcodes that are oriented vertically set this to BX_Orientation_Vertical.

Any barcodes that are oriented horizontally or diagonally will not be returned.

The default value is BX_Orientation_HorizontalVertical.

ReturnPossibleBarcodes _Bool

Specifies if the barcode engine should return possible barcodes.

When this property is set to true, the barcode engine returns candidate barcodes which could not be decoded in the results list.

The default value is false.

AustralianPostDecodeType BX_AustralianPostDecodeType

Specifies the method of decoding the customer section for Australian Post 4 State barcode which supports a customer section in both the Customer Barcode 2 and Customer Barcode 3 formats.

The default value is BX_AustralianPostDecodeType_NoCustomDecode.

ScanDistance long

Specifies the scan distance in pixels between line sweeps when searching for 1D barcodes.

The default value is 5. 

Valid values are 1 up to and including 10.

 

 

 

 

 

 


©2015. Accusoft Corporation. All Rights Reserved.

Send Feedback