AutomaticReadSkewedBarCode

Description         This method reads and decodes a skewed, 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.) Skewed barcode reader/decoder methods can decode skewed and non-skewed barcodes as well and always assume that the reading direction is left to right. It means that the detected angle is assuming the left to right coding. For further information about the input buffers, see the Skewed 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. Angle is a value that shows the detected orientation. The angle value can be retrieved by the method GetAngle.

Syntax                 RetVal = [BiBrw1Dh]AutomaticReadSkewedBarCode 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              AutomaticReadHorVerBarCode, GetBarcodeValue, GetCoding, GetScore, GetAngle