置信度阈值 - ML
从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包。