Finnish OCR in C# and .NET

This article was translated from English: Does it need improvement?
Translated
View the article in English
Outras versões deste documento:

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 finlandê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 do IronOcr.Idiomas.Finlandês

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

  • Finlandês
  • Melhor finlandês
  • FinnishFast

Baixar

Pacote de idioma finlandês [suomi]

Instalação

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

Install-Package IronOcr.Languages.Finnish

Exemplo de código

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

// Ensure you have installed the IronOcr.Languages.Finnish package before using this code.
// You can install it via NuGet package manager.

using IronOcr;

var Ocr = new IronTesseract(); // Create a new instance of the IronTesseract OCR engine
Ocr.Language = OcrLanguage.Finnish; // Set the language of the OCR engine to Finnish

// Using a using statement to ensure the OcrInput gets disposed of correctly
using (var Input = new OcrInput(@"images\Finnish.png")) // Path to the image/PDF containing Finnish text
{
    var Result = Ocr.Read(Input); // Perform OCR on the input file
    var AllText = Result.Text; // Extract the recognized text as a string

    // Output or process the extracted text as required
    Console.WriteLine(AllText); // Example of outputting the text to the console
}
// Ensure you have installed the IronOcr.Languages.Finnish package before using this code.
// You can install it via NuGet package manager.

using IronOcr;

var Ocr = new IronTesseract(); // Create a new instance of the IronTesseract OCR engine
Ocr.Language = OcrLanguage.Finnish; // Set the language of the OCR engine to Finnish

// Using a using statement to ensure the OcrInput gets disposed of correctly
using (var Input = new OcrInput(@"images\Finnish.png")) // Path to the image/PDF containing Finnish text
{
    var Result = Ocr.Read(Input); // Perform OCR on the input file
    var AllText = Result.Text; // Extract the recognized text as a string

    // Output or process the extracted text as required
    Console.WriteLine(AllText); // Example of outputting the text to the console
}
$vbLabelText   $csharpLabel