閱讀掃描文檔
本程式碼範例示範如何使用 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 (光學字元識別) 引擎從影像中擷取文字。