IronBarcode 標誌for .NET

用C#從圖像讀取條碼

  • 讀取超過30種格式, 包括所有主要的1D/2D類型
  • 創建具有樣式、尺寸和註釋控制的條碼
  • 使用異步和多線程批次處理
  • 免費30天試用,完整功能,無需信用卡
試用金鑰

立即獲取您的免費 30天試用密鑰。

核對圖示 無需信用卡或建立帳號
Test Icon

在實際環境中測試

在生產環境中測試而不帶水印。
適用於您所需的任何地方。

Functional Icon

功能齊全的產品

獲得 30 天完整功能產品。
幾分鐘內即可運行。

Support Icon

24/5 技術支援

在您的產品試用期間全面訪問我們的支援技術團隊

條碼快速入門
using IronBarCode;
using System.Drawing;

// Reading a barcode is easy with IronBarcode!
var resultFromFile = BarcodeReader.Read(@"file/barcode.png"); // From a file
var resultFromBitMap = BarcodeReader.Read(new Bitmap("barcode.bmp")); // From a bitmap
var resultFromImage = BarcodeReader.Read(Image.FromFile("barcode.jpg")); // From an image file
var resultFromPdf = BarcodeReader.ReadPdf(@"file/mydocument.pdf"); // From PDF use ReadPdf

// To configure and fine-tune barcode reading, utilize the BarcodeReaderOptions class
var myOptionsExample = 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,

    // Reader will stop scanning once a single barcode is found (if set to true)
    ExpectMultipleBarcodes = true,

    // By default, all barcode formats are scanned for
    // Specifying a subset of barcode types to search for would improve performance
    ExpectBarcodeTypes = BarcodeEncoding.AllOneDimensional,

    // Utilize multiple threads to read barcodes from multiple images in parallel
    Multithreaded = true,

    // Maximum threads for parallelized barcode reading
    // Default is 4
    MaxParallelThreads = 2,

    // The area of each image frame in which to scan for barcodes
    // Specifying a crop area will significantly improve performance and avoid noisy parts of the image
    CropArea = new Rectangle(),

    // Special setting for Code39 barcodes
    // If a Code39 barcode is detected, try to read with both the base and extended ASCII character sets
    UseCode39ExtendedMode = true
};

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

// Create a barcode with one line of code
var myBarcode = BarcodeWriter.CreateBarcode("12345", BarcodeWriterEncoding.EAN8);

// After creating a barcode, we may choose to resize
myBarcode.ResizeTo(400, 100);

// Save our newly-created barcode as an image
myBarcode.SaveAsImage("EAN8.jpeg");

// Get the barcode as an image for further processing
var myBarcodeImage = myBarcode.Image;

為什麼選擇 IronBarcode?

讀取和寫入任何條碼。快速交付。運行於Windows、Linux、macOS和雲端。

點擊觀看關於IronBarcode的影片

廣泛的格式支援

  • 50+種條碼類型:Code 39/93/128,UPC,EAN,QR,Data Matrix,PDF417,Aztec等。
  • 在單個程式庫中讀寫條碼,無需獨立工具。
  • 一次調用即可輸出為圖像、PDF或HTML。

5 分鐘即可上手

  • PM > Install-Package BarCode

    → 5 分鐘快速開始。
  • 簡單的 API:BarcodeReader.Read(), BarcodeWriter.CreateBarcode().
  • 智能默認設置:內建自動圖像校正和條碼檢測。

企業級效能

  • .NET 10、Core、Standard 或 Framework
  • 多線程和批量掃描:每分鐘處理1,000+條條碼。
  • 部署任何地方:雲端、本地、氣隙或無伺服器環境。

精確讀取,無論條件如何

  • 基於機器學習的預處理:自動糾正斜度、噪音、方向和低DPI。
  • 在生產中對受損或打印不佳的條碼有98%以上的成功率。
  • 裁切區域和置信度分數,確保精確、可稽核的結果。

以開發者為先的支援與許可

  • 永久授權:買一次,永久使用。選擇性更新和續訂。
  • 24/5 工程師支援(Premium 中 24/7)。真人支持,中位數聊天響應時間 <1 分鐘。
  • 30 天退款保證不合適?全額退款,不問原因。

給開發者

  • 您實際需要的功能:
    • 讀/寫條碼
    • QR 碼生成
    • 批量掃描
    • 圖像校正濾鏡
    • 裁剪區域 (ROI)
    • 信心分數
    • 條碼樣式
    • PDF/HTML 匯出
    • 標誌嵌入 (QR)
    • 自訂編碼
  • 無所不在:Windows、Linux、macOS、Docker、Azure、AWS、云。

給買家

  • 深受信賴:2M+ 工程師 • 2M+ NuGet安裝。
  • 團隊報告-40% 開發時間節省對比 DIY/OSS 包裹。
  • 再分發/SaaS方案可選。
  • 符合採購需求:永久授權,選擇性更新,支持發票,多種支付選項(包括本地支付)。
  • 30 天退款保證。

我們的客戶如何評價 IronPDF?

Agorus40%節省

quote_symbol過去我們可能需要外出使用一個插件或一個包來進行 OCR,另一個用於 PDF,將它們全部集成到一個低成本的包中對我們來說真的很棒。

David JonesDavid Jones首席軟件工程師閱讀個案研究

Green2View

Green2View savings chart節省20%

Green2view實現了 20% 的成本節省,文件周轉時間加快 30%,合規性達到 100%。

閱讀個案研究
WILLAN

WILLAN savings chart減少行政工作40%

自動化的 PDF 生成每次都能提供像素完美的財務報告,就這麼簡單。

閱讀個案研究

世界級工程,
24小時支援

與專家交談