You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
LocalizationMode - Dynamsoft Barcode Reader C++ Enumerations
description
Reference for the LocalizationMode enumeration in DBR C++ Edition, listing the strategies used to identify barcode locations within an image, such as connected blocks, statistics, and scan-direct modes.
keywords
Localization mode
codeAutoHeight
true
Enumeration LocalizationMode
LocalizationMode specifies the strategies used to identify the locations of barcodes within an image.
>- C++
>
>
```cpp
typedef enum LocalizationMode
{
/**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. Check @ref LM for available argument settings. */
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. Check @ref LM for available argument settings. */
LM_CENTRE = 0x80,
/**Localizes 1D barcodes fast. Check @ref LM for available argument settings. */
LM_ONED_FAST_SCAN = 0x100,
/**Localizes barcodes by utilizing a neural network model. Introduced in version 11.2.1000. */
LM_NEURAL_NETWORK = 0x200,
/**Reserved setting for localization mode. */
#if defined(_WIN32) || defined(_WIN64)
LM_REV = 0x80000000,
/**Placeholder value with no functional meaning.*/
LM_END = 0xFFFFFFFF,
#else
LM_REV = -2147483648,
/**Placeholder value with no functional meaning.*/
LM_END = -1,
#endif
/**Skips localization. */
LM_SKIP = 0x00
}LocalizationMode;
```