C# 中的 Tesseract OCR
- 使用Tesseract在C#中读取文本
- 支持VB.NET 适用于 .NET 的 Tesseract
- 学习如何使用 Tesseract教程
或直接下载DLL这里
using OCR 将图像转换为文本
查看所有%s代码示例using IronOcr;
var ocr = new IronTesseract();
using var input = new OcrInput();
input.LoadImage("attachment.png");
input.LoadPdf("report.pdf");
OcrResult result = ocr.Read(input);
string text = result.Text;
Dim ocr = New IronTesseract()
Using input = New OcrInput()
input.LoadImage("attachment.png")
input.LoadPdf("report.pdf")
Dim result As OcrResult = ocr.Read(input)
Dim text As String = result.Text
End Using