BarcodeInfo

NI Vision for LabWindows/CVI Function

BarcodeInfo

Contains information about a barcode.

Elements

Name

Type

Description

outputString const char* A string containing the decoded barcode data.
size int The size of the output string.
outputChar1 char The contents of this character depend on the barcode type. For IMAQ_CODABAR the function sets outputChar1 to the start character. For IMAQ_CODE128, the function sets outputChar1 to the FNC value. For IMAQ_EAN8 and IMAQ_EAN13, the function sets outputChar1 to the first country code. For all other barcode types, the function sets outputChar1 to 0.
outputChar2 char The contents of this character depend on the barcode type. For IMAQ_CODABAR, the function sets outputChar2 to the stop character. For IMAQ_EAN8 and IMAQ_EAN13, the function sets outputChar2 to the second country code. For IMAQ_UPCA, the function sets outputChar2 to the system number. For all other barcode types, the function sets outputChar2 to 0.
confidenceLevel double A quality measure of the decoded barcode ranging from 0 to 100, with 100 being the best. This value weighs the error in the widths of the bars and spaces with the size of the character in the barcode. In general, a confidenceLevel value of less than 80 means the decoded string is suspect. Note that confidenceLevelis particularly useful in decoding IMAQ_EAN13 barcodes because twelve of the thirteen data values are encoded as characters in the barcode, and the thirteenth value is encoded by the parity of the first 12 encoded characters.
type BarcodeType The type of barcode.