I'm using OnBarcode SDK and I wrote the following code to read barcode fonts, but it does not read all the barcode fonts. For example, it fails to read the font IDAutomationHC39M2.
That's my current code:
int i = 1; String[] barcodes = BarcodeScanner.Scan(filenamet.Text, BarcodeType.Code39 | BarcodeType.Code128 | BarcodeType.All | BarcodeType.Codabar); foreach (string element in barcodes) { decoded += i + "**{ " + element + " }**" + "\r\n"; i += 1; } MessageBox.Show(decoded); Are there any libraries that need to be added to the project to recognize barcode fonts?
Mohamed AbedallahPosted Apr 19, 2018, 8:18 AM
If the quality of the printed barcode is good, any standard Code39 barcode reader should handle such codes.
If the SDK you are using doesn’t support this font, you may try LEADTOOLS toolkit and see if you can read that font.
You can test your image using their online demo. Try this link:
http://demo.leadtools.com/JavaScript/Barcode/
If you want to use C#, the code to read looks like this:
Leon DPosted Apr 13, 2018, 1:02 AM