Valid horizontal/vertical barcodes:
Description of valid horizontal barcodes can be easily generalized to vertical barcodes.
|
The images “A” and “B” are readable, correct horizontal barcodes, but “C” is an incorrect, unreadable barcode with horizontal barcode reader methods due to the vertical noise on it’s left side. In the case of “C”, first try to find the barcode on the image, and call the reading methods only for the detected rectangle. In some cases when the barcode to detect is too noisy (such as image “B”), the automatic position detection of the barcode is not possible, however the barcode can still be decoded.
Use automatic barcode detection to find barcodes on images such as “C”.
String buffers: Decoding methods return the detected barcode type and the decoded value into the specified string buffers. These string buffers are allocated and freed up by the user, and have to contain enough space for the return values. The maximum value size of a given barcode is barcode standard dependent. If it’s not known, use the largest string length (255). For possible return values (and sizes) of detected coding, see coding values.
Score: Score is a value that shows the sureness of decoding. This value is similar to a probability, and it’s in the range 0.0 .. 100.0. On noisy, scanned images a Score greater than 10.0 shows a good decoding probability. Score values less than 10.0 are low probabilities, but a low probability does not mean that the decoded value is definitely wrong.