OCR oriya 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'oriya. 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.Oriya

Ce package contient plusieurs langages OCR pour .NET :

  • Oriya
  • OriyaBest
  • OriyaFast
  • OriyaAlphabet
  • OriyaAlphabetBest
  • OriyaAlphabetFast

Télécharger

Pack de langue Oriya [ଓଡଆ]

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

Installation

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

Install-Package IronOCR.Languages.Oriya

Exemple de code

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

// This example demonstrates how to use the IronOCR library to perform OCR on an Oriya language image.
using IronOcr;

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

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

        // Define the input file path for the OCR
        using (var Input = new OcrInput(@"images\Oriya.png"))
        {
            // Perform OCR and obtain the result
            var Result = Ocr.Read(Input);

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

            // Output the recognized text
            Console.WriteLine(AllText);
        }
    }
}
// This example demonstrates how to use the IronOCR library to perform OCR on an Oriya language image.
using IronOcr;

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

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

        // Define the input file path for the OCR
        using (var Input = new OcrInput(@"images\Oriya.png"))
        {
            // Perform OCR and obtain the result
            var Result = Ocr.Read(Input);

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

            // Output the recognized text
            Console.WriteLine(AllText);
        }
    }
}
' This example demonstrates how to use the IronOCR library to perform OCR on an Oriya language image.
Imports IronOcr

Friend Class Program
	Shared Sub Main()
		' Instantiate the IronTesseract engine
		Dim Ocr = New IronTesseract()

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

		' Define the input file path for the OCR
		Using Input = New OcrInput("images\Oriya.png")
			' Perform OCR and obtain the result
			Dim Result = Ocr.Read(Input)

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

			' Output the recognized text
			Console.WriteLine(AllText)
		End Using
	End Sub
End Class
$vbLabelText   $csharpLabel
  • L'objet IronTesseract est utilisé pour configurer et effectuer la reconnaissance optique de caractères (OCR).
  • La langue pour la reconnaissance optique de caractères (OCR) est définie sur Oriya à l'aide OcrLanguage.Oriya .
  • OcrInput vous permet de spécifier l'image ou le document dont vous souhaitez extraire le texte.
  • La méthode Read() effectue la reconnaissance optique de caractères (OCR) et produit un résultat à partir duquel le texte reconnu peut être extrait et utilisé.