OCR de francés medio en C# y .NET
IronOCR es un componente de software en C# que permite a los programadores de .NET leer texto de imágenes y documentos PDF en 126 idiomas, incluyendo el francés medio.
Es una versión avanzada de Tesseract, construida exclusivamente para desarrolladores de .NET y que supera regularmente a otros motores Tesseract tanto en velocidad como en precisión.
Contenido de IronOcr.Languages.MiddleFrench
Este paquete contiene 61 idiomas OCR para .NET:
- French Medio
- French Medio Mejor
- French Medio Rápido
Descargar
Paquete de idioma francés medio [Moyen Français]
Instalación
Lo primero que tenemos que hacer es instalar nuestro paquete OCR de francés medio en su proyecto .NET.
Install-Package IronOcr.Languages.MiddleFrench
Ejemplo de código
Este ejemplo de código C# lee texto en francés medio de una imagen o documento 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




