Thaana Alphabet OCR in C
O IronOCR é um componente de software C# que permite aos programadores .NET ler texto de imagens e documentos PDF em 126 idiomas, incluindo o alfabeto Thaana.
Trata-se de uma versão avançada do Tesseract, criada exclusivamente para desenvolvedores .NET e que supera regularmente outros mecanismos do Tesseract em termos de velocidade e precisão.
Conteúdo de IronOcr.Languages.Thaana
Este pacote contém 67 idiomas de OCR for .NET:
- ThaanaAlfabeto
- ThaanaAlphabetBest
- ThaanaAlphabetFast
Baixar
Pacote de idiomas do alfabeto Thaana [Thaana]
Instalação
A primeira coisa que precisamos fazer é instalar o pacote Thaana Alphabet OCR no seu projeto .NET.
Install-Package IronOcr.Languages.Thaana
Exemplo de código
Este exemplo de código C# lê o texto do alfabeto Thaana de uma imagem ou documento 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
O código acima demonstra como usar o IronOCR para realizar OCR em uma imagem contendo a escrita Thaana.
- Ele configura um objeto OCR, especifica o idioma e lê o texto do arquivo de imagem especificado. O texto extraído poderá então ser utilizado conforme necessário na sua aplicação.

