設置讀取速度
IronBarcode 透過提供對處理速度與精度的靈活控制,來強化 BarCode 讀取功能,在掃描大量資料時,能平衡效能與資源效率。 開發人員可根據輸入影像的品質及可用資源,調整讀取方式:針對清晰影像選擇較快的處理方式,或針對困難的影像採用更耗資源的方法以提升準確性。 這種靈活性確保開發人員能夠優化掃描流程,以高效滿足特定的運作需求。
選擇閱讀速度選項的 4 步驟指南
varoptions= newBarcodeReaderOptions();options.Speed=ReadingSpeed.Balanced;varresults=BarcodeReader.Read("barcode.png",options);Console.WriteLine($"Found {results.Values()[0]}");
The first step to choosing the reading speed option is to instantiate a new BarcodeReaderOptions and modify the settings used to read barcodes. We modify the Speed property to ReadingSpeed.Balanced. The Balanced property offers a balance between performance and accuracy and is generally the option that developers should use for any standard tasks.
Afterward, we call the Read method and pass along the input image as well as the BarcodereaderOptions variable, then finally we read and print the barcode result by accessing the Values array and retrieving the first barcode found.
為 BARCODE 選擇合適的讀取速度可能頗具挑戰,但 IronBarcode 提供了多種選項與自訂功能,協助您做出最佳決策。

