Faroese 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 C# que permite aos programadores .NET ler texto de imagens e documentos PDF em 126 idiomas, incluindo o feroês.

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

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

  • Faroês
  • FaroêsBest
  • FaroêsFast

Baixar

Pacote de Idioma Feroês [føroyskt]

Instalação

O primeiro passo é instalar o pacote OCR para feroês no seu projeto .NET :

Install-Package IronOcr.Languages.Faroese

Exemplo de código

Este exemplo de código C# lê texto feroês de uma imagem ou documento PDF.

// Import the IronOcr namespace
using IronOcr;

class Program
{
    static void Main()
    {
        // Create a new instance of IronTesseract
        var Ocr = new IronTesseract();

        // Specify the language to use for OCR 
        // In this case, we're using Faroese
        Ocr.Language = OcrLanguage.Faroese;

        // Use a using statement for automatic resource management
        using (var Input = new OcrInput(@"images\Faroese.png"))
        {
            // Perform OCR on the input image
            var Result = Ocr.Read(Input);

            // Extract the recognized text
            var AllText = Result.Text;

            // Print the extracted text to console
            Console.WriteLine(AllText);
        }
    }
}
// Import the IronOcr namespace
using IronOcr;

class Program
{
    static void Main()
    {
        // Create a new instance of IronTesseract
        var Ocr = new IronTesseract();

        // Specify the language to use for OCR 
        // In this case, we're using Faroese
        Ocr.Language = OcrLanguage.Faroese;

        // Use a using statement for automatic resource management
        using (var Input = new OcrInput(@"images\Faroese.png"))
        {
            // Perform OCR on the input image
            var Result = Ocr.Read(Input);

            // Extract the recognized text
            var AllText = Result.Text;

            // Print the extracted text to console
            Console.WriteLine(AllText);
        }
    }
}
$vbLabelText   $csharpLabel
  • IronTesseract: Este objeto serve como o núcleo do mecanismo OCR.
  • Ocr.Language: Define o OCR para o idioma feroês. Certifique-se de que o pacote de idioma feroês esteja instalado.
  • OcrInput: Fornece o arquivo de entrada (imagem ou PDF) para OCR.
  • Ocr.Read: Processa a entrada e gera um resultado OCR.
  • Result.Text: Extrai as informações de texto da operação OCR.