OCR népalais 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 népalais.

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.Népal

Ce package contient 43 langues OCR pour .NET :

  • Népalais
  • NepaliBest
  • NepaliFast

Télécharger

Pack de langue népali [नपाली]

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

Installation

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

Install-Package IronOcr.Languages.Nepali

Exemple de code

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

// First, ensure the IronOCR and the Nepali language pack are installed:
// PM> Install-Package IronOcr.Languages.Nepali

// Import the IronOcr namespace to access the required OCR functionalities.
using IronOcr;

class NepaliOcrExample
{
    public void ReadNepaliText()
    {
        // Create an instance of IronTesseract, the main class for performing OCR tasks.
        var Ocr = new IronTesseract();

        // Set the language to Nepali. Ensure you have the Nepali language package installed.
        Ocr.Language = OcrLanguage.Nepali;

        // Specify the input image or PDF file which contains Nepali text.
        using (var Input = new OcrInput(@"images\Nepali.png"))
        {
            // Perform the OCR operation on the input and get the result.
            var Result = Ocr.Read(Input);

            // Extract the recognized text from the result.
            var AllText = Result.Text;

            // Print the recognized text to the console.
            System.Console.WriteLine(AllText);
        }
    }
}
// First, ensure the IronOCR and the Nepali language pack are installed:
// PM> Install-Package IronOcr.Languages.Nepali

// Import the IronOcr namespace to access the required OCR functionalities.
using IronOcr;

class NepaliOcrExample
{
    public void ReadNepaliText()
    {
        // Create an instance of IronTesseract, the main class for performing OCR tasks.
        var Ocr = new IronTesseract();

        // Set the language to Nepali. Ensure you have the Nepali language package installed.
        Ocr.Language = OcrLanguage.Nepali;

        // Specify the input image or PDF file which contains Nepali text.
        using (var Input = new OcrInput(@"images\Nepali.png"))
        {
            // Perform the OCR operation on the input and get the result.
            var Result = Ocr.Read(Input);

            // Extract the recognized text from the result.
            var AllText = Result.Text;

            // Print the recognized text to the console.
            System.Console.WriteLine(AllText);
        }
    }
}
' First, ensure the IronOCR and the Nepali language pack are installed:
' PM> Install-Package IronOcr.Languages.Nepali

' Import the IronOcr namespace to access the required OCR functionalities.
Imports IronOcr

Friend Class NepaliOcrExample
	Public Sub ReadNepaliText()
		' Create an instance of IronTesseract, the main class for performing OCR tasks.
		Dim Ocr = New IronTesseract()

		' Set the language to Nepali. Ensure you have the Nepali language package installed.
		Ocr.Language = OcrLanguage.Nepali

		' Specify the input image or PDF file which contains Nepali text.
		Using Input = New OcrInput("images\Nepali.png")
			' Perform the OCR operation on the input and get the result.
			Dim Result = Ocr.Read(Input)

			' Extract the recognized text from the result.
			Dim AllText = Result.Text

			' Print the recognized text to the console.
			System.Console.WriteLine(AllText)
		End Using
	End Sub
End Class
$vbLabelText   $csharpLabel