Barcode not Recognized
If you are using IronBarcode and the barcode is not recognized, please try the following:
- Be sure to specify the barcode encoding - https://ironsoftware.com/csharp/barcode/object-reference/api/IronBarCode.BarcodeEncoding.html#fields
- When possible, convert PDFs with barcodes to Image files as these are more easily read
- PNG/TIF files are ideal as they are uncompressed and easier to read. JPG images are compressed and are often pixelated / contain digital noise that can obstruct a proper read
- DPI 225 is ideal (DPI 200-250 is acceptable). Lower DPIs affect accuracy. Higher DPIs may not necessarily improve accuracy, but will increase read time.
- Use System.Drawing.Rectangle crop regions wherever possible - https://ironsoftware.com/csharp/barcode/tutorials/reading-barcodes/
System.Drawing.Rectangle MyCropArea = new Rectangle { X = 165, Y = 225, Width = 500, Height = 200 }; // measured in pixels
- For difficult images please see our FAQ for Imperfect Barcodes and Image Correction
If after this you are still experiencing issues, please see here: Barcode Engineering Request