French OCR in C# and .NET

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

IronOCR to komponent oprogramowania C#, pozwalający programistom .NET na odczytywanie tekstu z obrazów i dokumentów PDF w 126 językach, w tym po francusku.

Jest to zaawansowany fork Tesseracta, zbudowany wyłącznie dla deweloperów .NET i regularnie przewyższający inne silniki Tesseract pod względem szybkości i dokładności.

Zawartość IronOcr.Languages.French

Ten pakiet zawiera 43 języki OCR dla .NET:

  • Francuski
  • FrenchBest
  • FrenchFast

Pobieranie

French Language Pack [français]

Instalacja

Pierwszą rzeczą, jaką musimy zrobić, jest zainstalowanie naszego pakietu OCR Francuskiego do projektu .NET.

Install-Package IronOcr.Languages.French

Przyklad kodu

Ten przykład kodu C# odczytuje francuski tekst z obrazu lub dokumentu PDF.

// Import the IronOcr namespace
using IronOcr;

// Create a new instance of IronTesseract, which is the OCR engine
var Ocr = new IronTesseract();

// Specify the language to French for OCR processing
Ocr.Language = OcrLanguage.French;

// Load the input image or PDF document
using (var Input = new OcrInput(@"images\French.png"))
{
    // Perform OCR and retrieve the result
    var Result = Ocr.Read(Input);

    // Access the text from the OCR result
    var AllText = Result.Text;

    // Output or further process `AllText` as needed
}
// Import the IronOcr namespace
using IronOcr;

// Create a new instance of IronTesseract, which is the OCR engine
var Ocr = new IronTesseract();

// Specify the language to French for OCR processing
Ocr.Language = OcrLanguage.French;

// Load the input image or PDF document
using (var Input = new OcrInput(@"images\French.png"))
{
    // Perform OCR and retrieve the result
    var Result = Ocr.Read(Input);

    // Access the text from the OCR result
    var AllText = Result.Text;

    // Output or further process `AllText` as needed
}
' Import the IronOcr namespace
Imports IronOcr

' Create a new instance of IronTesseract, which is the OCR engine
Private Ocr = New IronTesseract()

' Specify the language to French for OCR processing
Ocr.Language = OcrLanguage.French

' Load the input image or PDF document
Using Input = New OcrInput("images\French.png")
	' Perform OCR and retrieve the result
	Dim Result = Ocr.Read(Input)

	' Access the text from the OCR result
	Dim AllText = Result.Text

	' Output or further process `AllText` as needed
End Using
$vbLabelText   $csharpLabel