Enumeration LocalizationMode
LocalizationMode
specifies the strategies used to identify the locations of barcodes within an image.
class EnumLocalizationMode(IntEnum):
#Not supported yet.
LM_AUTO = 0x01
#Localizes barcodes by searching for connected blocks. This algorithm usually gives best result and it is recommended to set ConnectedBlocks to the highest priority.
LM_CONNECTED_BLOCKS = 0x02
#Localizes barcodes by groups of contiguous black-white regions. This is optimized for QRCode and DataMatrix.
LM_STATISTICS = 0x04
#Localizes barcodes by searching for groups of lines. This is optimized for 1D and PDF417 barcodes.
LM_LINES = 0x08
#Localizes barcodes quickly. This mode is recommended in interactive scenario.
LM_SCAN_DIRECTLY = 0x10
#Localizes barcodes by groups of marks.This is optimized for DPM codes.
LM_STATISTICS_MARKS = 0x20
#Localizes barcodes by groups of connected blocks and lines.This is optimized for postal codes.
LM_STATISTICS_POSTAL_CODE = 0x40
#Localizes barcodes from the centre of the image.
LM_CENTRE = 0x80
#Localizes 1D barcodes fast.
LM_ONED_FAST_SCAN = 0x100
#Reserved setting for localization mode.
LM_REV = -2147483648
#Skips localization.
LM_SKIP = 0x00