OCR Cherokee en C

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

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

Ce package contient 120 langues OCR pour .NET :

  • Alphabet Cherokee
  • Meilleur alphabet cherokee
  • Alphabet Cherokee Rapide
  • Cherokee
  • CherokeeBest
  • CherokeeFast

Télécharger

Pack de langue cherokee [ᏣᎳᎩ ᎦᏬᏂᎯᏍᏗ]

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

Installation

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

Install-Package IronOCR.Languages.Cherokee

Exemple de code

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

// Import the IronOcr namespace
using IronOcr;

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

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

        // Use OcrInput to specify the image or PDF to be read
        using (var Input = new OcrInput(@"images\Cherokee.png"))
        {
            // Perform OCR on the input document
            var Result = Ocr.Read(Input);

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

            // Display the recognized text
            Console.WriteLine(AllText);
        }
    }
}
// Import the IronOcr namespace
using IronOcr;

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

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

        // Use OcrInput to specify the image or PDF to be read
        using (var Input = new OcrInput(@"images\Cherokee.png"))
        {
            // Perform OCR on the input document
            var Result = Ocr.Read(Input);

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

            // Display the recognized text
            Console.WriteLine(AllText);
        }
    }
}
' Import the IronOcr namespace
Imports IronOcr

Friend Class Program
	Shared Sub Main()
		' Create an instance of the IronTesseract class
		Dim Ocr = New IronTesseract()

		' Set the language for OCR to Cherokee
		Ocr.Language = OcrLanguage.Cherokee

		' Use OcrInput to specify the image or PDF to be read
		Using Input = New OcrInput("images\Cherokee.png")
			' Perform OCR on the input document
			Dim Result = Ocr.Read(Input)

			' Extract all recognized text
			Dim AllText = Result.Text

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

Voici une brève description du fonctionnement du code :

  • IronTesseract : Une instance de la classe IronTesseract est créée pour gérer les opérations OCR.
  • OcrLanguage.Cherokee : La langue est définie sur le cherokee à l'aide de la propriété OcrLanguage.Cherokee , qui indique au moteur OCR de reconnaître le texte en cherokee.
  • OcrInput : Un chemin d'accès est fourni à la classe OcrInput où se trouve l'image ou le document PDF.
  • Ocr.Read : La méthode Read est appelée sur l'objet OCR, en lui passant les données d'entrée. Il effectue le processus de reconnaissance optique de caractères (OCR).
  • Result.Text : extrait le texte reconnu du résultat et le stocke dans la variable AllText pour une utilisation ultérieure.
  • Sortie console : Le texte reconnu est affiché dans la console.