IRONSOFTWAREHOME
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);
Imports IronBarCode

Dim readerOptions As New BarcodeReaderOptions() With {
    .ExpectMultipleBarcodes = True,
    .ConfidenceThreshold = 0.3
}

' Read with the options applied
Dim 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,472,280Version:2026.10just released

Key in blue circle

Get your free 30-day Trial Key instantly

Your trial license will be sent to your email address

No limitations. 100% unlocked. No credit card.

bullet_checkedNo credit card or account creation requiredNo limitations. 100% unlocked. No credit card.
  • Logo Aetna
  • Logo NASA
  • Logo GE
  • Logo Porsche
  • Logo USDA
  • Logo Qatar
Join Millions of Engineers who’ve tried IronBarcode
Book your free Live Demo
Booking Badge

Trusted by Millions of Engineers Worldwide

Iron Software's customer logos
Get a Quote, No Obligation
Your details will always be kept confidential.
  • Logo Aetna
  • Logo NASA
  • Logo GE
  • Logo Porsche
  • Logo USDA
  • Logo Qatar
Trusted by Millions of Engineers Worldwide
Get your free 30-day Trial Key instantly.
No credit card or account creation required
C# NuGet Library for PDF
Install with NuGet

Version: 2026.10

PM > Install-Package BarCode
nuget.org/packages/BarCode/
  1. In Solution Explorer, right-click References, Manage NuGet Packages
  2. Select Browse and search "IronBarCode"
  3. Select the package and install
C# PDF DLL
Download DLL

Version: 2026.10

  1. Download and unzip IronBarCode to a location such as ~/Libs within your Solution directory
  2. In Visual Studio Solution Explorer, right click References. Select Browse, "IronBarCode.dll"

Licenses from $999