IMAQ Read QR Code VI
- Updated2023-02-21
- 14 minute(s) read
Requires: NI Vision Development Module
Locates and then reads the value encoded in a QR code. You can compare the decoded data to a reference string or check whether the data contains a specific pattern. Many of the options of this VI allow for automatic detection of QR code properties or determine which methods the VI should use to locate and decode the QR code. Selecting specific properties and methods for these options will greatly increase the performance of the VI.
![]() |
QR Search Options is a cluster that contains the search options to use when searching for QR codes in the image.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() |
Image is a reference to the source image. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() |
ROI Descriptor is a descriptor that defines the rectangle, rotated rectangle, or polygon within which the QR code is located.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() |
QR Description Options is a cluster that contains the QR code description options to use when searching for QR codes in the image.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() |
error in (no error) describes the error status before this VI or function runs. The default is no error. If an error occurred before this VI or function runs, the VI or function passes the error in value to error out. This VI or function runs normally only if no error occurred before this VI or function runs. If an error occurs while this VI or function runs, it runs normally and sets its own error status in error out. Use the Simple Error Handler or General Error Handler VIs to display the description of the error code. Use error in and error out to check errors and to specify execution order by wiring error out from one node to error in of the next node.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() |
QR Code Cell Size (pixels) is a cluster that contains the code size options to use when searching for codes in the image. The size refers to cell size in pixels.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() |
Image (duplicate) is the reference to the image that contains the QR code. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() |
QR Code Report is a cluster that contains the QR code description options to use when searching for QR codes in the image.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() |
Tokenized Output Data contains the data tokenized in exactly the way it was encoded in the symbol. This is useful if the symbol is encoded using multiple languages. ModeData will contain the language identifier. This is also useful if the symbol contains multiple EAN-128 application IDs. ModeData will contain the Application Identifiers. Otherwise, the QR Code Report data should suffice.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() |
error out contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, it describes the error status that this VI or function produces. Right-click the error out indicator on the front panel and select Explain Error from the shortcut menu for more information about the error.
|
Examples
Refer to the following for an example that uses this VI.
- LabVIEW\examples\Vision\Barcodes\Read QR Code.vi