OCR malais en C# et .NET

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

126 autres langues

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 malais.

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.Malay

Ce package contient 40 langues OCR pour .NET :

  • Malais
  • MalaisBest
  • MalaisFast

Télécharger

Pack de langue malaise [langue malaise]

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

Installation

La première chose que nous devons faire est d'installer notre package OCR malais dans votre projet .NET.

Install-Package IronOCR.Languages.Malay

Exemple de code

Cet exemple de code C# lit le texte malais d'une image ou d'un PDF.

// This example demonstrates how to read Malay text using IronOcr.

using IronOcr;

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

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

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

            // Extract and store the recognized text from the OCR result
            string AllText = Result.Text;

            // Output the recognized text (optional)
            Console.WriteLine(AllText);
        }
    }
}
// This example demonstrates how to read Malay text using IronOcr.

using IronOcr;

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

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

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

            // Extract and store the recognized text from the OCR result
            string AllText = Result.Text;

            // Output the recognized text (optional)
            Console.WriteLine(AllText);
        }
    }
}
' This example demonstrates how to read Malay text using IronOcr.

Imports IronOcr

Friend Class Program
	Shared Sub Main()
		' Create a new instance of the IronTesseract class
		Dim Ocr = New IronTesseract()

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

		' Use a using statement to ensure the OcrInput is properly disposed of
		Using Input = New OcrInput("images\Malay.png")
			' Perform OCR on the input image
			Dim Result = Ocr.Read(Input)

			' Extract and store the recognized text from the OCR result
			Dim AllText As String = Result.Text

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