OCR du moyen français en C# et .NET

This article was translated from English: Does it need improvement?
Translated
View the article in English

126 autres langues

IronOCR est un composant logiciel C# permettant aux développeurs .NET de lire du texte à partir d'images et de documents PDF dans 126 langues, dont le moyen français.

Il s'agit d'une version avancée de Tesseract, conçue exclusivement pour les développeurs .NET et qui surpasse régulièrement les autres moteurs Tesseract en termes de vitesse et de précision.

Sommaire de IronOcr.Languages.MiddleFrench

Ce package contient 61 langues OCR pour .NET :

Moyen français

  • Moyen français Meilleur
  • Moyen français rapide

Télécharger

Middle French Language Pack [Moyen Français]

  • Télécharger au format ZIP
  • Installer avec NuGet

Installation

La première chose à faire est d'installer notre package OCR de moyen français sur votre projet .NET.

Install-Package IronOcr.Languages.MiddleFrench

Exemple de code

Cet exemple de code C# lit du texte en moyen français à partir d'une image ou d'un document PDF.

// 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
$vbLabelText   $csharpLabel