OCR de l'alphabet Thanana 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, y compris l'alphabet Thaana.

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

Ce package contient 67 langues OCR pour .NET :

  • ThaanaAlphabet
  • ThaanaAlphabetBest
  • ThaanaAlphabetFast

Télécharger

Pack de langue de l'alphabet Thaana [Thaana]

  • Télécharger en tant que Zip
  • Installer avec NuGet

Installation

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

Install-Package IronOCR.Languages.Thaana

Exemple de code

Cet exemple de code C# lit le texte de l'alphabet Thanaana à partir d'une image ou d'un document PDF.

// Import the IronOcr namespace
using IronOcr;

// Create a new IronTesseract OCR object
var Ocr = new IronTesseract();

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

// Create an OcrInput object with the path to the image
using (var Input = new OcrInput(@"images\Thaana.png"))
{
    // Perform OCR on the input image to extract text
    var Result = Ocr.Read(Input);

    // Store the recognized text from the image in a variable
    var AllText = Result.Text;

    // Output the recognized text to the console or any other use
    Console.WriteLine(AllText);
}
// Import the IronOcr namespace
using IronOcr;

// Create a new IronTesseract OCR object
var Ocr = new IronTesseract();

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

// Create an OcrInput object with the path to the image
using (var Input = new OcrInput(@"images\Thaana.png"))
{
    // Perform OCR on the input image to extract text
    var Result = Ocr.Read(Input);

    // Store the recognized text from the image in a variable
    var AllText = Result.Text;

    // Output the recognized text to the console or any other use
    Console.WriteLine(AllText);
}
' Import the IronOcr namespace
Imports IronOcr

' Create a new IronTesseract OCR object
Private Ocr = New IronTesseract()

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

' Create an OcrInput object with the path to the image
Using Input = New OcrInput("images\Thaana.png")
	' Perform OCR on the input image to extract text
	Dim Result = Ocr.Read(Input)

	' Store the recognized text from the image in a variable
	Dim AllText = Result.Text

	' Output the recognized text to the console or any other use
	Console.WriteLine(AllText)
End Using
$vbLabelText   $csharpLabel
  • Le code ci-dessus montre comment utiliser IronOCR pour effectuer une reconnaissance optique de caractères (OCR) sur une image contenant un script Thaana.
  • Il configure un objet OCR, spécifie la langue et lit le texte à partir du fichier image spécifié.
  • Le texte extrait peut ensuite être utilisé selon vos besoins dans votre application.