設定閱讀速度

IronBarCode 透過提供對處理速度和準確性的靈活控制來增強條碼讀取功能,平衡效能和資源效率,從而實現大批量掃描。 開發者可以根據輸入影像品質和可用資源微調讀取方法,選擇對清晰影像進行快速處理,或採用更密集的方法來提高對複雜影像的準確性。 這種適應性確保開發人員能夠優化掃描過程,從而有效率地滿足特定的操作需求。

選擇閱讀速度選項的 4 步驟指南

  • var options = new BarcodeReaderOptions();
  • options.Speed = ReadingSpeed.Balanced;
  • var results = 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.

選擇合適的條碼讀取速度可能具有挑戰性,但 IronBarcode 提供多種選項和自訂功能,幫助您做出決定。

如需更多範例,請查看有關使用 IronBarcode 和 C# 的操作指南。

準備好開始了嗎?
Nuget 下載 2,002,059 | 版本: 2025.12 剛發表