OCR ourdou 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 l'ourdou.

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

Ce package contient 37 langues OCR pour .NET :

  • Ourdou
  • UrduBest
  • UrduFast

Télécharger

Pack de langue ourdou [ourdou]

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

Installation

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

Install-Package IronOCR.Languages.Urdu

Exemple de code

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

// Install the IronOcr.Languages.Urdu package
using IronOcr;

var Ocr = new IronTesseract(); // Create a new OCR object
Ocr.Language = OcrLanguage.Urdu; // Set the language to Urdu

// Using a block that ensures the Input object gets disposed after use
using (var Input = new OcrInput(@"images\Urdu.png")) 
{
    var Result = Ocr.Read(Input); // Perform OCR on the input
    var AllText = Result.Text; // Extract the recognized text
    // AllText now contains the Urdu text read from the image
}
// Install the IronOcr.Languages.Urdu package
using IronOcr;

var Ocr = new IronTesseract(); // Create a new OCR object
Ocr.Language = OcrLanguage.Urdu; // Set the language to Urdu

// Using a block that ensures the Input object gets disposed after use
using (var Input = new OcrInput(@"images\Urdu.png")) 
{
    var Result = Ocr.Read(Input); // Perform OCR on the input
    var AllText = Result.Text; // Extract the recognized text
    // AllText now contains the Urdu text read from the image
}
' Install the IronOcr.Languages.Urdu package
Imports IronOcr

Private Ocr = New IronTesseract() ' Create a new OCR object
Ocr.Language = OcrLanguage.Urdu ' Set the language to Urdu

' Using a block that ensures the Input object gets disposed after use
Using Input = New OcrInput("images\Urdu.png")
	Dim Result = Ocr.Read(Input) ' Perform OCR on the input
	Dim AllText = Result.Text ' Extract the recognized text
	' AllText now contains the Urdu text read from the image
End Using
$vbLabelText   $csharpLabel