Middle French 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 French.
It is an advanced fork of Tesseract, built exclusively for .NET developers and regularly outperforms other Tesseract engines in both speed and accuracy.
Contents of IronOcr.Languages.MiddleFrench
This package contains 61 OCR languages for .NET:
- MiddleFrench
- MiddleFrenchBest
- MiddleFrenchFast
Download
Middle French Language Pack [Moyen Français]
Installation
The first thing we have to do is install our Middle French OCR package to your .NET project.
Install-Package IronOcr.Languages.MiddleFrench
Code Example
This C# code example reads Middle French text from an Image or PDF document.
// Import the IronOcr namespace
using IronOcr;
var Ocr = new IronTesseract(); // Initialize the OCR engine
Ocr.Language = OcrLanguage.MiddleFrench; // Set the language to MiddleFrench
// Create an OcrInput from the specified image file
using (var Input = new OcrInput(@"images\MiddleFrench.png"))
{
var Result = Ocr.Read(Input); // Perform OCR on the input image
var AllText = Result.Text; // Retrieve the recognized text
// The variable 'AllText' now contains the text extracted from the image
}
// Import the IronOcr namespace
using IronOcr;
var Ocr = new IronTesseract(); // Initialize the OCR engine
Ocr.Language = OcrLanguage.MiddleFrench; // Set the language to MiddleFrench
// Create an OcrInput from the specified image file
using (var Input = new OcrInput(@"images\MiddleFrench.png"))
{
var Result = Ocr.Read(Input); // Perform OCR on the input image
var AllText = Result.Text; // Retrieve the recognized text
// The variable 'AllText' now contains the text extracted from the image
}
' Import the IronOcr namespace
Imports IronOcr
Private Ocr = New IronTesseract() ' Initialize the OCR engine
Ocr.Language = OcrLanguage.MiddleFrench ' Set the language to MiddleFrench
' Create an OcrInput from the specified image file
Using Input = New OcrInput("images\MiddleFrench.png")
Dim Result = Ocr.Read(Input) ' Perform OCR on the input image
Dim AllText = Result.Text ' Retrieve the recognized text
' The variable 'AllText' now contains the text extracted from the image
End Using