Thaana Alphabet OCR in C
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 for .NET :
- ThaanaAlphabet
- ThaanaAlphabetBest
- ThaanaAlphabetFast
Télécharger
Pack de langue de l'alphabet Thaana [Thaana]
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
- 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.

