C#中的Tesseract OCR
- 使用 Tesseract 讀取 C# 中的文字
- 支持使用 VB.NET Tesseract for .NET
- 學習如何使用 Tesseract 教程
或者直接從這裡下載 DLL
使用 OCR 將影像轉換為文字
查看所有 程式碼範例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 UsingDim 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