读取扫描文档
本代码示例演示了如何使用 IronTesseract OCR(光学字符识别)引擎从图像中提取文本。
准备开始了吗?
Nuget 下载 5,246,844 | 版本: 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);Imports IronOcr
Imports System
' Instantiate OCR engine
Private ocr = New IronTesseract()
' Configure OCR engine
Private input = New OcrInput()
input.LoadImage("potter.tiff")
' Perform OCR
Dim result As OcrResult = ocr.ReadDocument(input)
Console.WriteLine(result.Text)Install-Package IronOcr
本代码示例演示了如何使用 IronTesseract OCR(光学字符识别)引擎从图像中提取文本。