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

Es ist eine fortschrittliche Abspaltung von Tesseract, die ausschließlich for .NET-Entwickler gebaut wurde und regelmäßig andere Tesseract-Engines sowohl in Geschwindigkeit als auch Genauigkeit übertrifft.

Inhalte von IronOcr.Languages.Kazakh

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

  • Kasachisch
  • KazakhBest
  • KazakhFast

Download

Kasachisches Sprachpaket [қазақ тілі]

Installation

Das Erste, was wir tun müssen, ist, unser Kazakh OCR-Paket zu Ihrem .NET-Projekt zu installieren.

Install-Package IronOcr.Languages.Kazakh

Beispielcode

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

// Import the IronOcr namespace
using IronOcr;

class Program
{
    static void Main()
    {
        // Initialize the IronTesseract OCR class
        var Ocr = new IronTesseract();

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

        // Use a 'using' statement to manage resources efficiently
        using (var Input = new OcrInput(@"images\Kazakh.png"))
        {
            // Perform OCR on the input image
            var Result = Ocr.Read(Input);

            // Retrieve and store the recognized text
            var AllText = Result.Text;

            // Output the recognized text
            Console.WriteLine(AllText);
        }
    }
}
// Import the IronOcr namespace
using IronOcr;

class Program
{
    static void Main()
    {
        // Initialize the IronTesseract OCR class
        var Ocr = new IronTesseract();

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

        // Use a 'using' statement to manage resources efficiently
        using (var Input = new OcrInput(@"images\Kazakh.png"))
        {
            // Perform OCR on the input image
            var Result = Ocr.Read(Input);

            // Retrieve and store the recognized text
            var AllText = Result.Text;

            // Output the recognized text
            Console.WriteLine(AllText);
        }
    }
}
' Import the IronOcr namespace
Imports IronOcr

Friend Class Program
	Shared Sub Main()
		' Initialize the IronTesseract OCR class
		Dim Ocr = New IronTesseract()

		' Set the OCR language to Kazakh
		Ocr.Language = OcrLanguage.Kazakh

		' Use a 'using' statement to manage resources efficiently
		Using Input = New OcrInput("images\Kazakh.png")
			' Perform OCR on the input image
			Dim Result = Ocr.Read(Input)

			' Retrieve and store the recognized text
			Dim AllText = Result.Text

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

Dieser Code demonstriert, wie man mit IronOCR , konfiguriert für die kasachische Sprache, eine optische Zeichenerkennung (OCR) an einer Bilddatei mit dem Namen Kazakh.png durchführt. Der erkannte Text wird extrahiert und auf die Konsole ausgegeben.