OCR kazakh en C# et .NET

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

IronOCR est un composant logiciel C# permettant aux développeurs .NET de lire du texte à partir d'images et de documents PDF dans 126 langues, dont le kazakh.

Il s'agit d'une version avancée de Tesseract, conçue exclusivement pour les développeurs .NET et qui surpasse régulièrement les autres moteurs Tesseract en termes de vitesse et de précision.

Contenu de IronOcr.Languages.Kazakh

Ce package contient 43 langues OCR pour .NET :

  • Kazakh
  • KazakhBest
  • KazakhFast

Télécharger

Pack de langue kazakh [қазақ тілі]

  • Télécharger au format ZIP
  • Installer avec NuGet

Installation

La première chose à faire est d'installer notre package OCR kazakh sur votre projet .NET.

Install-Package IronOCR.Languages.Kazakh

Exemple de code

Cet exemple de code C# lit du texte kazakh à partir d'une image ou d'un document PDF.

// 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

Ce code montre comment effectuer une reconnaissance optique de caractères (OCR) sur un fichier image nommé Kazakh.png en utilisant IronOCR configuré pour la langue kazakhe. Le texte reconnu est extrait et affiché sur la console.