AutomaticReadHorVerBarCode

Description         This method reads and decodes a horizontal or vertical, unknown type of barcode within the given range of the input image and returns the detected type and the decoded value. Decoded values always contain the checksum characters if available. 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.) Horizontal barcode read/decode methods always assume that the barcode to decode is horizontal and the reading direction is left to right. For further information about the input buffers, see the Horizontal and Vertical Reading/Decoding section of this manual. Coding constant value can be retrieved by the method GetCoding. For possible values see the Constant values and structures section. Decoded value can be retrieved by the method GetBarcodeValue. Score is a value that shows the sureness of decoding. Score is between 0.0 (low sureness) and 100.0 (high sureness). The score value can be retrieved by the method GetScore.

Syntax                 RetVal = [BiBrw1Dh]AutomaticReadHorVerBarCode hDib

 

Returns               RetVal         Short                          0 on success or an error code on failure. For possible values see the Barcode Error codes.

Remarks             hDib             LONGLONG            Device independent bitmap.

See Also              AutomaticReadSkewedBarCode, GetBarcodeValue, GetCoding, GetScore