OCR mongol 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 mongol.

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

Ce package contient 52 langues OCR pour .NET :

  • Mongol
  • MongolianBest
  • MongolianFast

Télécharger

Pack de langue mongole [монгол]

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

Installation

La première étape consiste à installer le package OCR mongol dans votre projet .NET.

Install-Package IronOCR.Languages.Mongolian

Exemple de code

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

using IronOcr;

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

        // Set the language to Mongolian
        Ocr.Language = OcrLanguage.Mongolian;

        // Define the input as an image located in the "images" directory
        using (var Input = new OcrInput(@"images\Mongolian.png"))
        {
            // Perform OCR on the input image
            var Result = Ocr.Read(Input);

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

            // Output the recognized text to the console
            Console.WriteLine(AllText);
        }
    }
}
using IronOcr;

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

        // Set the language to Mongolian
        Ocr.Language = OcrLanguage.Mongolian;

        // Define the input as an image located in the "images" directory
        using (var Input = new OcrInput(@"images\Mongolian.png"))
        {
            // Perform OCR on the input image
            var Result = Ocr.Read(Input);

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

            // Output the recognized text to the console
            Console.WriteLine(AllText);
        }
    }
}
Imports IronOcr

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

		' Set the language to Mongolian
		Ocr.Language = OcrLanguage.Mongolian

		' Define the input as an image located in the "images" directory
		Using Input = New OcrInput("images\Mongolian.png")
			' Perform OCR on the input image
			Dim Result = Ocr.Read(Input)

			' Extract all recognized text
			Dim AllText = Result.Text

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

Cet exemple montre comment utiliser IronOCR pour effectuer une reconnaissance optique de caractères sur une image de texte mongol. Il initialise le moteur OCR, définit la langue et traite l'entrée d'image pour récupérer et afficher le texte reconnu.