OCR français en C# et .NET

This article was translated from English: Does it need improvement?
Translated
View the article in English
Other versions of this document:

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 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.

Contenu de IronOcr.Languages.French

Ce package contient 43 langues OCR pour .NET :

  • Français
  • FrenchBest
  • FrenchFast

Télécharger

French Language Pack [français]

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

Installation

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

Install-Package IronOCR.Languages.French

Exemple de code

Cet exemple de code C# lit du texte français à partir d'une image ou d'un document 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