读取扫描文档
本代码示例演示了如何使用 IronTesseract OCR(光学字符识别)引擎从图像中提取文本。
准备开始了吗?
Nuget 下载 5,299,091 | 版本: 2025.12 刚刚发布
using IronOcr;
using System;
// Instantiate OCR engine
var ocr = new IronTesseract();
// Configure OCR engine
using var input = new OcrInput();
input.LoadImage("potter.tiff");
// Perform OCR
OcrResult result = ocr.ReadDocument(input);
Console.WriteLine(result.Text);Install-Package IronOcr
本代码示例演示了如何使用 IronTesseract OCR(光学字符识别)引擎从图像中提取文本。