IRONSOFTWAREHOME
設置讀取速度
using IronBarCode;
using System;

var options = new BarcodeReaderOptions
{
    // Choose a reading speed from: Faster, Balanced, Detailed, ExtremeDetail
    // There is a tradeoff in performance as more detail is set
    Speed = ReadingSpeed.Balanced,
};

// Read with the options applied
var results = BarcodeReader.Read("barcode.png", options);

// Output the first found value
Console.WriteLine($"Found {results.Values()[0]}");
Imports IronBarCode
Imports System

Dim options = New BarcodeReaderOptions With {
    .Speed = ReadingSpeed.Balanced
}

' Read with the options applied
Dim results = BarcodeReader.Read("barcode.png", options)

' Output the first found value
Console.WriteLine($"Found {results.Values()(0)}")
NuGet Download
PM > Install-Package BarCode
設置讀取速度

設置讀取速度

IronBarcode通過提供靈活的控制來增強條碼讀取速度和準確性,在掃描大量條碼時平衡性能和資源效率。 開發者可以根據輸入影像的質量和可用資源微調讀取方法,在清晰影像上選擇更快的處理速度,或使用更高強度的方法來提高在困難影像上的準確性。 這種適應性確保開發者可以有效地優化掃描過程,以滿足特定操作需求。

選擇讀取速度選項的四步指南

  • var options = new BarcodeReaderOptions();
  • options.Speed = ReadingSpeed.Balanced;
  • var results = BarcodeReader.Read("barcode.png", options);
  • Console.WriteLine($"Found {results.Values()[0]}");

選擇讀取速度選項的第一步是實例化一個新的BarcodeReaderOptions並修改用於讀取條碼的設定。 我們將ReadingSpeed.Balanced。 Balanced屬性在性能和準確性之間達到平衡,通常是開發者應該用於任何標準任務的選項。

之後,我們調用Values陣列讀取並列印第一次找到的條碼結果。

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

更多範例,請查看如何在C#中使用IronBarcode的指南。
在 GitHub 上查看

準備好開始了嗎?

Nuget Downloads 2,472,280版本:2026.10剛剛發布

Key in blue circle

立即免費取得 30 天試用金鑰。

Your trial license will be sent to your email address

無任何限制。100% 解鎖。無需信用卡。

bullet_checked無需信用卡或建立帳號無任何限制。100% 解鎖。無需信用卡。
  • Logo Aetna
  • Logo NASA
  • Logo GE
  • Logo Porsche
  • Logo USDA
  • Logo Qatar
Join Millions of Engineers who’ve tried IronBarcode
預訂您的免費即時演示
Booking Badge

全球數百萬工程師信賴

Iron Software的客戶標誌
獲取您的無義務諮詢
您的詳細資訊將始終保密。
  • Logo Aetna
  • Logo NASA
  • Logo GE
  • Logo Porsche
  • Logo USDA
  • Logo Qatar
全球數百萬工程師信賴
立即獲取您的30天試用金鑰。
無需信用卡或帳戶建立
C# NuGet程式庫,用於PDF
通過NuGet安裝

版本: 2026.10

PM > Install-Package BarCode
nuget.org/packages/BarCode/
  1. 在解決方案資源管理器中,右鍵點擊References,管理NuGet包
  2. 選擇瀏覽並搜尋"IronBarCode"
  3. 選擇包並安裝
C# PDF DLL
下載DLL

版本: 2026.10

  1. 下載並解壓IronBarCode至您的Solution目錄中的~/Libs等位置
  2. 在Visual Studio解決方案資源管理器中右鍵點擊References,選擇瀏覽,"IronBarCode.dll"

從$999起的授權費用