Kyrgyz OCR in C# and .NET

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

IronOCR ist eine C#-Softwarekomponente, die es .NET-Programmierern ermöglicht, Text aus Bildern und PDF-Dokumenten in 126 Sprachen, einschließlich Kirgisisch, auszulesen.

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

Inhalt von IronOcr.Languages.Kyrgyz

Dieses Paket enthält 43 OCR-Sprachen for .NET:

  • Kirgisisch
  • KyrgyzBest
  • KyrgyzFast

Download

Kirgisch Sprachpaket [Кыргызча]

Installation

Das erste, was wir tun müssen, ist, unser Kirgisisches OCR-Paket in Ihr .NET-Projekt zu installieren.

Install-Package IronOcr.Languages.Kyrgyz

Beispielcode

Dieses C#-Codebeispiel liest kirgisischen Text aus einem Bild oder PDF-Dokument.

// Import the IronOcr namespace
using IronOcr;

public class KyrgyzOcrExample
{
    public void PerformOcr()
    {
        // Initialize IronTesseract for OCR operations
        var Ocr = new IronTesseract();

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

        // Define the input using an image file path
        using (var Input = new OcrInput(@"images\Kyrgyz.png"))
        {
            // Perform OCR and get the result
            var Result = Ocr.Read(Input);

            // Extracted text from the image
            string AllText = Result.Text;

            // Output the extracted text (or use it in your application as needed)
            Console.WriteLine(AllText);
        }
    }
}
// Import the IronOcr namespace
using IronOcr;

public class KyrgyzOcrExample
{
    public void PerformOcr()
    {
        // Initialize IronTesseract for OCR operations
        var Ocr = new IronTesseract();

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

        // Define the input using an image file path
        using (var Input = new OcrInput(@"images\Kyrgyz.png"))
        {
            // Perform OCR and get the result
            var Result = Ocr.Read(Input);

            // Extracted text from the image
            string AllText = Result.Text;

            // Output the extracted text (or use it in your application as needed)
            Console.WriteLine(AllText);
        }
    }
}
$vbLabelText   $csharpLabel
  • Dieser Codeblock initialisiert ein IronTesseract Objekt zur Durchführung von OCR.
  • Es stellt die Sprache mithilfe des Enums OcrLanguage.Kyrgyz auf Kirgisisch ein.
  • Die Klasse OcrInput dient zur Angabe des Dateipfads des Bildes, aus dem der Text extrahiert wird.
  • Ocr.Read(Input) führt den OCR-Prozess durch und liefert ein Ergebnis, das den extrahierten Text enthält, der über Result.Text zugänglich ist.
  • Schließlich gibt Console.WriteLine(AllText) den extrahierten Text in der Konsole aus.