#include "BIBRW1D.H"
int CALLBACK AutomaticReadSkewedBarCode (
HANDLE hDIB,
LPRECT pRect,
char * cCoding,
char * cValue,
float * fpScore,
int * iAngle)
Description
This function reads and decodes a skewed, unknown type barcode in the given range of the input image and returns the detected type, decoded value and the detected orientation. Decoded values always contain the checksum characters if available. This function 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 functions 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.
Parameters
|
HDIB |
hDIB |
Handle of the input DIB. |
|
LPRECT |
pRect |
A rectangle specifying the area of the image where the barcode is. If all of the pRect values are zero, or pRect is NULL, the whole image is scanned. |
|
char * |
cCoding |
A string buffer where the coding constant is written into. The buffer must be allocated and freed up by the user, and has to contain enough space for the coding constant. For possible values see the Constant values and structures section. |
|
char * |
cValue |
A string buffer where the decoded value is written into. The buffer must be allocated and freed up by the user, and has to contain enough space for the decoded value. |
|
float * |
fpScore |
A float buffer where the score value is written into. The buffer must be allocated and freed up by the user. Score is a value that shows the sureness of decoding. Score is between 0.0 (low sureness) and 100.0 (high sureness). |
|
int * |
iAngle |
An integer buffer where the detected orientation is written into. The buffer must be allocated and freed up by the user. |
Return values
0 on success or an error code on failure. For possible values see Barcode Error codes.
Programming notes
None
Requirements
Header : Declared in BIBrw1d.h; include BIBrw1d.h.
Library : Use BIBrw1d.lib (32 bit version) or BIBrw1dx.lib (64 bit version).
DLLs : BIBrw1d.dll (32 bit version) or BIBrw1dx.dll (64 bit version).