OCR gaélique écossais 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 gaélique écossais.

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

Ce package contient 67 langues OCR pour .NET :

  • Gaélique écossais
  • Gaélique écossaisBest
  • Gaélique écossaisFast

Télécharger

Pack de langue gaélique écossaise [gaélique]

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

Installation

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

Install-Package IronOCR.Languages.ScottishGaelic

Exemple de code

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

// PM> Install-Package IronOcr.Languages.ScottishGaelic
using IronOcr;

// Create an instance of the IronTesseract class
var Ocr = new IronTesseract();

// Set the language to Scottish Gaelic
Ocr.Language = OcrLanguage.ScottishGaelic;

// Create an OcrInput object with the specified image or PDF file
using (var Input = new OcrInput(@"images\ScottishGaelic.png"))
{
    // Perform OCR on the input and obtain the result
    var Result = Ocr.Read(Input);

    // Retrieve the recognized text
    var AllText = Result.Text;
}
// PM> Install-Package IronOcr.Languages.ScottishGaelic
using IronOcr;

// Create an instance of the IronTesseract class
var Ocr = new IronTesseract();

// Set the language to Scottish Gaelic
Ocr.Language = OcrLanguage.ScottishGaelic;

// Create an OcrInput object with the specified image or PDF file
using (var Input = new OcrInput(@"images\ScottishGaelic.png"))
{
    // Perform OCR on the input and obtain the result
    var Result = Ocr.Read(Input);

    // Retrieve the recognized text
    var AllText = Result.Text;
}
' PM> Install-Package IronOcr.Languages.ScottishGaelic
Imports IronOcr

' Create an instance of the IronTesseract class
Private Ocr = New IronTesseract()

' Set the language to Scottish Gaelic
Ocr.Language = OcrLanguage.ScottishGaelic

' Create an OcrInput object with the specified image or PDF file
Using Input = New OcrInput("images\ScottishGaelic.png")
	' Perform OCR on the input and obtain the result
	Dim Result = Ocr.Read(Input)

	' Retrieve the recognized text
	Dim AllText = Result.Text
End Using
$vbLabelText   $csharpLabel

Le code ci-dessus installe et configure un processus OCR utilisant IronOcr pour la langue gaélique écossaise. Il effectue une reconnaissance optique de caractères sur l'image spécifiée ScottishGaelic.png et extrait le texte contenu dans l'image. Le texte extrait sera stocké dans la variable AllText pour une utilisation ou un traitement ultérieur.