快速 OCR 設定
using IronOcr;
using System;

var ocrTesseract = new IronTesseract();

// Fast Dictionary
ocrTesseract.Language = OcrLanguage.EnglishFast;

// Turn off unneeded options
ocrTesseract.Configuration.ReadBarCodes = false;

// Assume text is laid out neatly in an orthogonal document
ocrTesseract.Configuration.PageSegmentationMode = TesseractPageSegmentationMode.Auto;

using var ocrInput = new OcrInput();
ocrInput.LoadImage(@"images\image.png");

var ocrResult = ocrTesseract.Read(ocrInput);
Console.WriteLine(ocrResult.Text);
NuGet Download
PM > Install-Package IronOcr
快速 OCR 設定

快速 OCR 設定

這個範例在以降低0.2%準確度為代價配置後,展示了一個35%以上的速度提升。

您可能也對如何OCR一個圖像內的特定區域感興趣,這也可以顯著提高速度。

您可以從NuGet下載IronOCR或直接作為DLL下載。

Explore IronTesseract for Enhanced OCR in .NET
在GitHub上查看

準備開始了嗎?

Nuget Downloads 6,357,159版本:2026.11剛剛發布