从 2023 年 12 月起,IronBarcode 已将机器学习技术融入其条形码检测能力。 设置ConfidenceThreshold属性的BarcodeReaderOptions,以确定被认为有效的机器学习模型检测的最低置信度水平。 置信度阈值介于0.0和1.0之间,默认设置为0.7。
对于不使用机器学习的条形码检测,建议使用Barcode.Slim软件包。
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)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)从 2023 年 12 月起,IronBarcode 已将机器学习技术融入其条形码检测能力。 设置ConfidenceThreshold属性的BarcodeReaderOptions,以确定被认为有效的机器学习模型检测的最低置信度水平。 置信度阈值介于0.0和1.0之间,默认设置为0.7。
对于不使用机器学习的条形码检测,建议使用Barcode.Slim软件包。
NuGet 下载量 2,575,633|版本:2026.11刚刚发布