Middle French OCR in C# and .NET

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

Mais 126 idiomas

O IronOCR é um componente de software em C# que permite aos programadores .NET ler texto de imagens e documentos PDF em 126 idiomas, incluindo o francês médio.

Trata-se de uma versão avançada do Tesseract, criada exclusivamente para desenvolvedores .NET e que supera regularmente outros mecanismos do Tesseract em termos de velocidade e precisão.

Conteúdo de IronOcr.Languages.MiddleFrench

Este pacote contém 61 linguagens de OCR for .NET:

  • Francês Médio
  • MiddleFrenchBest
  • Francês Médio Rápido

Baixar

Pacote de francês médio [Moyen Français]

Instalação

A primeira coisa que precisamos fazer é instalar nosso pacote OCR de francês médio em seu projeto .NET.

Install-Package IronOcr.Languages.MiddleFrench

Exemplo de código

Este exemplo de código C# lê texto em francês médio a partir de uma imagem ou 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
}
$vbLabelText   $csharpLabel