Confidence Threshold - ML
using IronBarCode;

BarcodeReaderOptions readerOptions = new BarcodeReaderOptions()
{
    ExpectMultipleBarcodes = true,

    // Set minimum confidence level
    ConfidenceThreshold = 0.3,
};

// Read with the options applied
var results = BarcodeReader.Read("barcode.png", readerOptions);
NuGet Download
PM > Install-Package BarCode
Confidence Threshold - ML

Confidence Threshold - ML

Starting from December 2023, IronBarcode has incorporated machine learning to enhance its barcode detection capability. Set the ConfidenceThreshold property of the BarcodeReaderOptions to establish the minimum confidence level for ML model detection to be considered valid. The confidence threshold value is between 0.0 and 1.0, with the default set to 0.7.

For barcode detection without using machine learning, consider using the Barcode.Slim package.

Learn Image Correction Techniques with IronBarcode
View on GitHub

Ready to Get Started?

Nuget Downloads 2,540,041Version:2026.11just released