QRDemodulationMode

NI Vision for LabWindows/CVI Function

QRDemodulationMode

Specifies the mode the function should use to demodulate the QR code.

Elements

Name

Value

Description

IMAQ_QR_DEMODULATION_MODE_AUTO_DETECT -2 The function will try each demodulation mode and use the one which decodes the QR code within the fewest iterations and utilizing the least amount of error correction.
IMAQ_QR_DEMODULATION_MODE_HISTOGRAM 0 The function uses a histogram of all of the QR cells to calculate a threshold. This threshold determines if a cell is on or off. This is the fastest mode, but requires images with consistent levels of contrast.
IMAQ_QR_DEMODULATION_MODE_LOCAL_CONTRAST 1 The function examines each of the cell's neighbors to determine if the cell is on or off. This mode is slower, but works with images that have inconsistent levels of contrast.
IMAQ_QR_DEMODULATION_MODE_COMBINED 2 The function uses the histogram of the QR code to calculate a threshold. For cells with pixel values that are sufficiently below or above this threshold, the method will use the threshold to determine if the cell is on or off. If the cell pixel values are close to the threshold, the method will use the IMAQ_QR_DEMODULATION_MODE_LOCAL_CONTRAST mode to determine if the cell is on or off. This mode is slower, but works with images that contain a QR code with extremely low cell fill percentages or gross print growth errors.
IMAQ_QR_DEMODULATION_MODE_ALL 3 The function tries IMAQ_QR_DEMODULATION_MODE_HISTOGRAM, then IMAQ_QR_DEMODULATION_MODE_LOCAL_CONTRAST and then IMAQ_QR_DEMODULATION_MODE_COMBINED, stopping once one mode is successful.
IMAQ_QR_DEMODULATION_MODE_SIZE_GUARD 0xFFFFFFFF Reserved