信心閾值 - 機器學習
自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
Private readerOptions As New BarcodeReaderOptions() With {
.ExpectMultipleBarcodes = True,
.ConfidenceThreshold = 0.3
}
' Read with the options applied
Private results = BarcodeReader.Read("barcode.png", readerOptions)Install-Package BarCode
自2023年12月起,IronBarcode已整合機器學習以增強其條碼檢測能力。 設置ConfidenceThreshold屬性於BarcodeReaderOptions,以確定機器學習模型檢測被認定為有效之最低信心等級。 信心閾值介於 0.0 至 1.0 之間,預設設為 0.7。
如果不使用機器學習進行條碼檢測,建議使用Barcode.Slim套件。