Litauische OCR in C# und .NET

This article was translated from English: Does it need improvement?
Translated
View the article in English
Other versions of this document:

IronOCR ist eine C#-Softwarekomponente, die es .NET-Entwicklern ermöglicht, in 126 Sprachen, einschließlich Litauisch, Text aus Bildern und PDF-Dokumenten zu lesen.

Es ist eine erweiterte Abspaltung von Tesseract, die exklusiv für .NET-Entwickler entwickelt wurde und regelmäßig andere Tesseract-Engines sowohl in Bezug auf Geschwindigkeit als auch Genauigkeit übertrifft.

Inhalt von IronOcr.Languages.Lithuanian

Dieses Paket enthält 55 OCR-Sprachen für .NET:

  • Litauisch
  • LithuanianBest
  • LithuanianFast

Download

Litauisches Sprachpaket [lietuvių kalba]

Installation

Als erstes müssen wir unser litauisches OCR-Paket in Ihr .NET-Projekt installieren.

Install-Package IronOCR.Languages.Lithuanian

Beispielcode

Dieses C#-Beispiel liest litauischen Text aus einem Bild oder PDF-Dokument.

// Include the IronOcr namespace to use OCR features
using IronOcr;

class Program
{
    static void Main(string[] args)
    {
        // Create a new instance of the IronTesseract class
        var Ocr = new IronTesseract();

        // Set the OCR language to Lithuanian
        Ocr.Language = OcrLanguage.Lithuanian;

        // Use a using statement to ensure that the OcrInput object is disposed of properly
        using (var Input = new OcrInput(@"images\Lithuanian.png"))
        {
            // Perform OCR on the input image and store the result
            var Result = Ocr.Read(Input);

            // Extract the text from the OCR result
            var AllText = Result.Text;

            // For demonstration purposes, output the extracted text to the console
            Console.WriteLine(AllText);
        }
    }
}
// Include the IronOcr namespace to use OCR features
using IronOcr;

class Program
{
    static void Main(string[] args)
    {
        // Create a new instance of the IronTesseract class
        var Ocr = new IronTesseract();

        // Set the OCR language to Lithuanian
        Ocr.Language = OcrLanguage.Lithuanian;

        // Use a using statement to ensure that the OcrInput object is disposed of properly
        using (var Input = new OcrInput(@"images\Lithuanian.png"))
        {
            // Perform OCR on the input image and store the result
            var Result = Ocr.Read(Input);

            // Extract the text from the OCR result
            var AllText = Result.Text;

            // For demonstration purposes, output the extracted text to the console
            Console.WriteLine(AllText);
        }
    }
}
$vbLabelText   $csharpLabel