Middle English OCR in C# and .NET
IronOCR is a C# software component allowing .NET coders to read text from images and PDF documents in 126 languages, including Middle English.
It is an advanced fork of Tesseract, built exclusively for the .NET developers and regularly outperforms other Tesseract engines for both speed and accuracy.
Contents of IronOcr.Languages.MiddleEnglish
This package contains 64 OCR languages for .NET:
- MiddleEnglish
- MiddleEnglishBest
- MiddleEnglishFast
Download
Middle English Language Pack [English (1100-1500 AD)]
Installation
The first thing we have to do is install our Middle English OCR package to your .NET project.
Install-Package IronOCR.Languages.MiddleEnglish
Code Example
This C# code example reads Middle English text from an image or PDF document.
// 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
- Ensure you have the IronOCR package and the appropriate language pack installed.
- This example initializes the OCR engine, sets it to process Middle English, reads text from an input image, and outputs the recognized text.