OCR féroïen 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 féroïen.

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.Féroïen

Ce package contient 46 langues OCR pour .NET :

  • Féroé
  • FéroéBest
  • FéroéFast

Télécharger

Pack de langue féroïenne [féroïen]

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

Installation

La première chose à faire est d'installer le package OCR féroïen sur votre projet .NET :

Install-Package IronOCR.Languages.Faroese

Exemple de code

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

// Import the IronOcr namespace
using IronOcr;

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

        // Specify the language to use for OCR 
        // In this case, we're using Faroese
        Ocr.Language = OcrLanguage.Faroese;

        // Use a using statement for automatic resource management
        using (var Input = new OcrInput(@"images\Faroese.png"))
        {
            // Perform OCR on the input image
            var Result = Ocr.Read(Input);

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

            // Print the extracted text to console
            Console.WriteLine(AllText);
        }
    }
}
// Import the IronOcr namespace
using IronOcr;

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

        // Specify the language to use for OCR 
        // In this case, we're using Faroese
        Ocr.Language = OcrLanguage.Faroese;

        // Use a using statement for automatic resource management
        using (var Input = new OcrInput(@"images\Faroese.png"))
        {
            // Perform OCR on the input image
            var Result = Ocr.Read(Input);

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

            // Print the extracted text to console
            Console.WriteLine(AllText);
        }
    }
}
' Import the IronOcr namespace
Imports IronOcr

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

		' Specify the language to use for OCR 
		' In this case, we're using Faroese
		Ocr.Language = OcrLanguage.Faroese

		' Use a using statement for automatic resource management
		Using Input = New OcrInput("images\Faroese.png")
			' Perform OCR on the input image
			Dim Result = Ocr.Read(Input)

			' Extract the recognized text
			Dim AllText = Result.Text

			' Print the extracted text to console
			Console.WriteLine(AllText)
		End Using
	End Sub
End Class
$vbLabelText   $csharpLabel
  • IronTesseract : Cet objet sert de moteur OCR principal.
  • Ocr.Language : Configure l'OCR en langue féroïenne. Assurez-vous que le pack de langue féroïenne est installé.
  • OcrInput : Fournit le fichier d'entrée (image ou PDF) pour la reconnaissance optique de caractères (OCR).
  • Ocr.Read : Traite l'entrée et génère un résultat OCR.
  • Result.Text : Extrait les informations textuelles de l'opération OCR.