從 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剛剛發布