ReadPDF417Barcode Method

NI Vision for Visual Basic

ReadPDF417Barcode Method

Syntax

CWIMAQVision.ReadPDF417Barcode SourceImage, Barcode2DReport [, SearchMode = cwimaqBarcode2DSearchSingleConservative] [, Regions]

Return Type

Long

On success, this method returns 0. On failure, this method returns a negative number.

Purpose

Reads PDF417 barcodes from an image.

Remarks

Use this method with U8 images.

Parameters

SourceImage As CWIMAQImage

The image containing the PDF417 barcodes to read.

Barcode2DReport As CWIMAQBarcode2DReport

On return, a CWIMAQBarcode2DReport containing information about the PDF417 barcodes, including a string containing the decoded barcode data.

SearchMode As Variant

[Optional] Specifies the mode the method uses to search for barcodes. This method supports SearchMode values of cwimaqBarcode2DSearchMultiple and cwimaqBarcode2DSearchSingleConservative.

This parameter has a default value of cwimaqBarcode2DSearchSingleConservative.

Regions As Variant

[Optional] An CWIMAQRegions object that specifies the location of the PDF417 barcodes in the image. The method uses the first CWIMAQRegion object in the collection, which must be an annulus, free region, oval, polygon, rectangle, or rotated rectangle region.

See Also

CWIMAQBarcode2DReport

CWIMAQRegions