For binary barcodes, the Black Ice Barcode SDK/ActiveX uses one model to detect the logical widths of the bars (or spaces). The algorithm searches the thinnest and thickest bar (or space), and uses the following formula for the decision:
If width < , logical width of bar (or space) is Thin
Else Narrow
Where ’a’ is the width of the thinnest bar (or space), and ‘B’ is the width of the thickest bar (or space). This method is very robust due to the strong noise removal before reading/decoding.