Middle French OCR in C# and .NET

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

126 wiecej jeżyków

IronOCR to komponent oprogramowania C# umożliwiający programistom .NET odczytywanie tekstu ze zdjęć i dokumentów PDF w 126 językach, w tym średniofrancuskim.

Jest to zaawansowany fork Tesseract, stworzony wyłącznie dla programistów .NET i regularnie przewyższa inne silniki Tesseract zarówno pod względem szybkości, jak i dokładności.

Zawartość IronOcr.Languages.MiddleFrench

Ten pakiet zawiera 61 języków OCR dla .NET:

  • MiddleFrench
  • MiddleFrenchBest
  • MiddleFrenchFast

Pobieranie

Middle French Language Pack [Moyen Français]

Instalacja

Pierwszą rzeczą, którą musimy zrobić, jest zainstalowanie pakietu OCR średniofrancuskiego do Twojego projektu .NET.

Install-Package IronOcr.Languages.MiddleFrench

Przyklad kodu

Ten przykład kodu C# odczytuje tekst średniofrancuski z obrazu lub dokumentu 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