IRONSOFTWAREHOME
具備 BarCode 與 QR 碼讀取功能的 OCR
using IronOcr;
using System;

var ocrTesseract = new IronTesseract();
ocrTesseract.Configuration.ReadBarCodes = true;
using var ocrInput = new OcrInput();
ocrInput.LoadImage(@"images\imageWithBarcode.png");
var ocrResult = ocrTesseract.Read(ocrInput);
foreach (var barcode in ocrResult.Barcodes)
{
    Console.WriteLine(barcode.Value);
}
Imports IronOcr
Imports System

Dim ocrTesseract = New IronTesseract()
ocrTesseract.Configuration.ReadBarCodes = True
Using ocrInput = New OcrInput()
    ocrInput.LoadImage("images\imageWithBarcode.png")
    Dim ocrResult = ocrTesseract.Read(ocrInput)
    For Each barcode In ocrResult.Barcodes
        Console.WriteLine(barcode.Value)
    Next
End Using
NuGet Download
PM > Install-Package IronOcr
具備 BarCode 與 QR 碼讀取功能的 OCR

具備 BarCode 與 QR 碼讀取功能的 OCR

Iron Tesseract OcrResult 物件可以在進行 OCR 時讀取條碼和 QR Code,如果您設置 Ocr.Configuration.ReadBarCodes = true;

這是 Iron Software 為基本/免費的 Tesseract 功能增加的寶貴內容之一。

此過程有效地允許您在 C# 應用程式中使用 IronOCR 程式庫解碼和利用 QR Code 中的資訊。

發現如何使用 IronOCR 讀取條碼
在GitHub上查看

準備開始了嗎?

Nuget Downloads 6,236,385版本:2026.9剛剛發布

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 IronPDF
獲取您的無義務諮詢
填寫以下表格或發送電子郵件至sales@ironsoftware.com
您的詳細資訊將始終保密。
被全球數百萬工程師信任
Iron Software的客戶標誌
立即獲取您的30天試用金鑰
無需信用卡或帳戶建立