ReadAllPDF417BarRemoveNoise

Description

The ReadAllPDF417BarRemoveNoise method removes noise from the image with a Median Filter, searches and decodes all filtered PDF-417 barcodes within the region of the input image specified in the parameters and returns a ReleaseP417Struct HANDLE.  This method works for only monochrome, 8 bit per pixel and 24 bit per pixel images. (The 8 bit per pixel and 24 bit per pixel images are converted into monochrome, using adaptive thresholding method.)  Use GetP417StructElements method to receive the struct elements, and ReleaseP417Struct method to free the allocated memory. Number of detected PDF-417 barcodes can be retrieved by the method GetBarcodeNum. This function will use the Peterson-Gorenstein-Zierler algorithm to detect and repair damaged codewords.

Syntax                  RetVal = [BiBrP417] ReadAllPDF417BarRemoveNoise hDIB N iShowProgress hWnd

Returns               RetVal       LONGLONG             A pointer to a PDF-417 Barcodestruct or 0 on error.

Remarks            hDib              LONGLONG            Device independent bitmap.

                            N                   short                           This parameter specifies the size of the square mask. N cannot be less than 1.

                            iShowProgress    short                   This parameter specifies the displaying of the progressbar.

Available values:

DISPLAY_NONE (0) – The progressbar will not display before filtering.

DISPLAY_PROGRESS (1) – The progressbar will display during filtering procedure.

                             hWnd          LONGLONG            Handler of the parent window.

 

See Also              GetBarcodeNum