Table of contents

EnumLocalizationMode

EnumLocalizationMode is an enumeration that represents the strategies used to identify the location of barcodes within an image or frame. Localization is one of the first and most important steps in the barcode detection process, so choosing the right localization modes for the scenario can make quite the difference in performance.

Some localization modes are optimized for certain barcode formats as you can see in the description of each mode below. However, it is recommended to have the connectedBlocks mode as the highest priority localization mode for any scenario as it is one most highly adaptable localization algorithms for any kind of scenario.

Definition

Assembly: dynamsoft_capture_vision_flutter

enum EnumLocalizationMode {
  skip(0),
  auto(1 << 0),
  connectedBlocks(1 << 1),
  statistics(1 << 2),
  lines(1 << 3),
  scanDirectly(1 << 4),
  statisticsMarks(1 << 5),
  statisticsPostalCode(1 << 6),
  centre(1 << 7),
  oneDFastScan(1 << 8),
  neuralNetwork(1 << 9),
  end(-1);
}

Members

Member Description
skip Omits the localization process entirely.
auto Automatic localization mode selection; not yet implemented so this is a placeholder until then.
connectedBlocks Identifies barcodes by finding connected blocks, offering optimal results, especially recommended for highest priority in most scenarios.
statistics Detects barcodes through analysis of patterns of contiguous black and white regions, tailored for QR Codes and DataMatrix codes.
lines Locates barcodes by identifying linear patterns, designed primarily for 1D barcodes and PDF417 codes.
scanDirectly Provides rapid barcode localization, suited for interactive applications where speed is crucial.
statisticsMarks Targets barcode localization through detection of specific mark groups, optimized for Direct Part Marking (DPM) codes.
statisticsPostalCode Combines methods of locating connected blocks and linear patterns to efficiently localize postal codes.
centre Initiates barcode localization from the image center, facilitating faster detection in certain layouts.
oneDFastScan Specialized for quick localization of 1D barcodes, enhancing performance in fast-scan scenarios.
neuralNetwork Localizes barcodes by utilizing a neural network model.
end Placeholder value with no functional meaning.

View more about LocalizationModes Parameters page.

This page is compatible for: