快速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刚刚发布