Middle English OCR in C# and .NET
IronOCR ist eine C#-Softwarekomponente, die .NET-Entwicklern ermöglicht, Text aus Bildern und PDF-Dokumenten in 126 Sprachen zu lesen, einschließlich Mittlerenglisch.
Es ist ein erweiterter Fork von Tesseract, der ausschließlich for .NET-Entwickler entwickelt wurde und regelmäßig andere Tesseract-Engines sowohl in Bezug auf Geschwindigkeit als auch Genauigkeit übertrifft.
Inhalte von IronOcr.Languages.MiddleEnglish
Dieses Paket enthält 64 OCR-Sprachen for .NET:
- Mittlerenglisch
- MittlerenglischBest
- MittlerenglischFast
Download
Mittlerenglisch Sprachpaket [Englisch (1100-1500 AD)]
Installation
Das erste, was wir tun müssen, ist, unser Mittlerenglisch OCR-Paket in Ihrem .NET-Projekt zu installieren.
Install-Package IronOcr.Languages.MiddleEnglish
Beispielcode
Dieses C#-Codebeispiel liest Mittlerenglisch-Text aus einem Bild oder PDF-Dokument.
// Import the IronOcr namespace
using IronOcr;
class Program
{
static void Main()
{
// Initialize the IronTesseract OCR engine
var Ocr = new IronTesseract();
// Set the language to Middle English
Ocr.Language = OcrLanguage.MiddleEnglish;
// Define the input source as an image file
using (var Input = new OcrInput(@"images\MiddleEnglish.png"))
{
// Perform OCR to read the text from the input
var Result = Ocr.Read(Input);
// Get all the recognized text
var AllText = Result.Text;
// Output the recognized text
Console.WriteLine(AllText);
}
}
}
// Import the IronOcr namespace
using IronOcr;
class Program
{
static void Main()
{
// Initialize the IronTesseract OCR engine
var Ocr = new IronTesseract();
// Set the language to Middle English
Ocr.Language = OcrLanguage.MiddleEnglish;
// Define the input source as an image file
using (var Input = new OcrInput(@"images\MiddleEnglish.png"))
{
// Perform OCR to read the text from the input
var Result = Ocr.Read(Input);
// Get all the recognized text
var AllText = Result.Text;
// Output the recognized text
Console.WriteLine(AllText);
}
}
}
' Import the IronOcr namespace
Imports IronOcr
Friend Class Program
Shared Sub Main()
' Initialize the IronTesseract OCR engine
Dim Ocr = New IronTesseract()
' Set the language to Middle English
Ocr.Language = OcrLanguage.MiddleEnglish
' Define the input source as an image file
Using Input = New OcrInput("images\MiddleEnglish.png")
' Perform OCR to read the text from the input
Dim Result = Ocr.Read(Input)
' Get all the recognized text
Dim AllText = Result.Text
' Output the recognized text
Console.WriteLine(AllText)
End Using
End Sub
End Class
- Stellen Sie sicher, dass das IronOCR-Paket und das entsprechende Sprachpaket installiert sind.
- Dieses Beispiel initialisiert die OCR-Engine, setzt sie auf Mittlerenglisch, liest Text von einem Eingabebild und gibt den erkannten Text aus.

