LocalizationAlgorithmPriority

Sets the priority of localization algorithms to decide the ordering of the following four localization algorithms.

Presence

Optional

Type

Array

Values

enum EnumLocalizationAlgorithmPriority
{
    ELAP_ConnetedBlocks =1,
    ELAP_Statistics=2,
    ELAP_Lines= 3,
    ELAP_FullImageAsBarcodeZone=4,
}
"ConnetedBlocks",
"Statistics",
"Lines",
"FullImageAsBarcodeZone"

Default Value

""

Remarks

Default value: The library will automatically use optimized localization priority, i.e. ConnectedBlocks -> Statistics -> Lines -> FullImageAsBarcodeZone, which is also the recommended order.

ConnetedBlocks: Localizes barcodes by searching connected blocks. This algorithm usually gives best result and it is recommended to set ConnetedBlocks to the highest priority.

Statistics: Localizes barcodes by groups of contiguous black-white regions. This algorithm is optimized for QRCode and DataMatrix.

Lines: Localizes barcodes by searching for groups of lines. This is optimized for 1D and PDF417 barcodes.

FullImageAsBarcodeZone: Disables localization. In this mode, it will directly decode barcodes on the full image without localization. If there is nothing other than the barcode in the image, it is recommended to use this mode.

Example

{
    "LocalizationAlgorithmPriority": ["ConnetedBlocks", "Lines", "Statistics", "FullImageAsBarcodeZone"],
}

results matching ""

    No results matching ""