Ancient Greek OCR in C#

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

I26 Mais idiomas

O IronOCR é um componente de software C# que permite aos programadores .NET ler texto de imagens e documentos PDF em 126 idiomas, incluindo o grego antigo.

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.Idiomas.Grego Antigo

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

  • Grego Antigo
  • Melhor Grego Antigo
  • Jejum da Grécia Antiga

Baixar

Pacote de idioma grego antigo [Ἑλληνική]

Instalação

A primeira coisa que precisamos fazer é instalar nosso pacote de OCR para grego antigo em seu projeto .NET .

Install-Package IronOcr.Languages.AncientGreek

Exemplo de código

Este exemplo de código C# lê texto em grego antigo de uma imagem ou documento PDF.

// To use the IronOCR library, ensure you have the Ancient Greek language pack installed.
// Import the IronOcr namespace
using IronOcr;

var Ocr = new IronTesseract();

// Set the OCR language to Ancient Greek
Ocr.Language = OcrLanguage.AncientGreek;

// Load the image or PDF document to extract text from
using (var Input = new OcrInput(@"images\AncientGreek.png"))
{
    // Perform OCR to read text from the input
    var Result = Ocr.Read(Input);

    // Retrieve the text found in the image
    var AllText = Result.Text;

    // Display the extracted text
    Console.WriteLine(AllText);
}
// To use the IronOCR library, ensure you have the Ancient Greek language pack installed.
// Import the IronOcr namespace
using IronOcr;

var Ocr = new IronTesseract();

// Set the OCR language to Ancient Greek
Ocr.Language = OcrLanguage.AncientGreek;

// Load the image or PDF document to extract text from
using (var Input = new OcrInput(@"images\AncientGreek.png"))
{
    // Perform OCR to read text from the input
    var Result = Ocr.Read(Input);

    // Retrieve the text found in the image
    var AllText = Result.Text;

    // Display the extracted text
    Console.WriteLine(AllText);
}
$vbLabelText   $csharpLabel