SearchMode Property

NI Vision for Visual Basic

SearchMode Property

Syntax

CWIMAQDataMatrixOptions.SearchMode

Data Type

CWIMAQBarcode2DSearchModes

You can use the following constants with this data type:

  • cwimaqBarcode2DSearchMultiple—The method searches for multiple 2D barcodes.
  • cwimaqBarcode2DSearchSingleAggressive—The method searches for a single 2D barcode using a method that assumes the barcode occupies a majority of the search region. This method skips some of the predictive portions of the search algorithm used by cwimaqBarcode2DSearchSingleConservative, which can lead to improved performance. Using this search mode when the barcode does not occupy a majority of the search region, when the barcode is rotated or when the image is blurry can lead to reduced performance.
  • cwimaqBarcode2DSearchSingleConservative—The method searches for 2D barcodes using the same searching algorithm as cwimaqBarcode2DSearchMultiple but stops searching after locating one valid barcode.

Purpose

Specifies the mode the method uses to search for barcodes. The default is cwimaqBarcode2DSearchSingleConservative.