Azerbaijani 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 .NET-Entwicklern ermöglicht, Text aus Bildern und PDF-Dokumenten in 126 Sprachen, einschließlich Aserbaidschanisch, zu lesen.

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.

Inhalte von IronOcr.Languages.Azerbaijani

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

  • Aserbaidschanisch
  • AserbaidschanischBest
  • AserbaidschanischSchnell
  • Aserbaidschanisch (Kyrillisch)
  • Aserbaidschanisch-kyrillischBest
  • AserbaidschanischKyrillischFast

Download

Aserbaidschanisches Sprachpaket [azərbaycan dili]

  • Als ZIP herunterladen
  • Installieren Sie mit NuGet

Installation

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

Install-Package IronOcr.Languages.Azerbaijani

Beispielcode

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

// Ensure the IronOCR Azerbaijani language package is installed
// PM> Install-Package IronOcr.Languages.Azerbaijani

using IronOcr;

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

        // Specify the language to be Azerbaijani
        Ocr.Language = OcrLanguage.Azerbaijani;

        // Provide the path to the image file containing Azerbaijani text
        using (var Input = new OcrInput(@"images\Azerbaijani.png"))
        {
            // Process the image to extract text
            var Result = Ocr.Read(Input);

            // Extracted text is stored in Result.Text
            var AllText = Result.Text;

            // Output the extracted text
            Console.WriteLine(AllText);
        }
    }
}
// Ensure the IronOCR Azerbaijani language package is installed
// PM> Install-Package IronOcr.Languages.Azerbaijani

using IronOcr;

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

        // Specify the language to be Azerbaijani
        Ocr.Language = OcrLanguage.Azerbaijani;

        // Provide the path to the image file containing Azerbaijani text
        using (var Input = new OcrInput(@"images\Azerbaijani.png"))
        {
            // Process the image to extract text
            var Result = Ocr.Read(Input);

            // Extracted text is stored in Result.Text
            var AllText = Result.Text;

            // Output the extracted text
            Console.WriteLine(AllText);
        }
    }
}
Imports IronOcr

Module Program
    Sub Main()
        ' Create a new instance of IronTesseract engine
        Dim Ocr As New IronTesseract()

        ' Specify the language to be Azerbaijani
        Ocr.Language = OcrLanguage.Azerbaijani

        ' Provide the path to the image file containing Azerbaijani text
        Using Input As New OcrInput("images\Azerbaijani.png")
            ' Process the image to extract text
            Dim Result = Ocr.Read(Input)

            ' Extracted text is stored in Result.Text
            Dim AllText = Result.Text

            ' Output the extracted text
            Console.WriteLine(AllText)
        End Using
    End Sub
End Module
$vbLabelText   $csharpLabel

In diesem Beispiel initialisieren wir das IronTesseract-Objekt und setzen die Sprache auf Aserbaidschanisch. Die Instanz OcrInput wird verwendet, um ein Bild aus dem angegebenen Dateipfad zu lesen. Die Ocr.Read-Methode verarbeitet das Bild, um den Text zu extrahieren, auf den über die Result.Text-Eigenschaft zugegriffen werden kann. Dies ermöglicht eine einfache Ausgabe oder weitere Verarbeitung.