OCR francés en C# y .NET

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

IronOCR es un componente de software C# que permite a los programadores de .NET leer texto de imágenes y documentos PDF en 126 idiomas, incluido el francés.

Es una rama avanzada de Tesseract, construida exclusivamente para desarrolladores de .NET y supera regularmente a otros motores de Tesseract tanto en velocidad como en precisión.

Contenido de IronOcr.Languages.French

Este paquete contiene 43 idiomas OCR para .NET:

  • Francés
  • FrancésMejor
  • FrancésRápido

Descargar

Paquete de idioma francés [français]

Instalación

Lo primero que tenemos que hacer es instalar nuestro paquete OCR de francés en su proyecto .NET.

Install-Package IronOCR.Languages.French

Ejemplo de código

Este ejemplo de código C# lee texto en francés de una imagen o documento 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