Tibetan Alphabet OCR in C# and .NET
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 tibetano.
Trata-se de uma versão avançada do Tesseract, criada exclusivamente para desenvolvedores .NET , e que supera regularmente outros mecanismos do Tesseract tanto em velocidade quanto em precisão.
Conteúdo de IronOcr.Languages.Tibetan
Este pacote contém 114 idiomas OCR for .NET:
- Tibetano
- TibetanoBest
- Jejum Tibetano
- Alfabeto Tibetano
- Melhor Alfabeto Tibetano
- Alfabeto TibetanoRápido
Baixar
Pacote de Alfabeto Tibetano [Padrão Tibetano]
Instalação
A primeira coisa que você precisa fazer é instalar o pacote OCR do alfabeto tibetano em seu projeto .NET.
Exemplo de código
Este exemplo de código C# lê texto em alfabeto tibetano a partir de uma imagem ou documento PDF.
// Import the IronOcr namespace to use its components
using IronOcr;
class Program
{
static void Main()
{
// Initialize a new IronTesseract object for OCR
var Ocr = new IronTesseract();
// Set the OCR language to Tibetan
Ocr.Language = OcrLanguage.Tibetan;
// Use a using statement for automatic resource disposal
using (var Input = new OcrInput(@"images\Tibetan.png"))
{
// Perform OCR to read text from the input image
var Result = Ocr.Read(Input);
// Retrieve all recognized text from the OCR Result
var AllText = Result.Text;
// Output the recognized text to the console
// Note: Ensure that the console supports Tibetan script for correct display
Console.WriteLine(AllText);
}
}
}' Import the IronOcr namespace to use its components
Imports IronOcr
Module Program
Sub Main()
' Initialize a new IronTesseract object for OCR
Dim Ocr As New IronTesseract()
' Set the OCR language to Tibetan
Ocr.Language = OcrLanguage.Tibetan
' Use a Using statement for automatic resource disposal
Using Input As New OcrInput("images\Tibetan.png")
' Perform OCR to read text from the input image
Dim Result = Ocr.Read(Input)
' Retrieve all recognized text from the OCR Result
Dim AllText = Result.Text
' Output the recognized text to the console
' Note: Ensure that the console supports Tibetan script for correct display
Console.WriteLine(AllText)
End Using
End Sub
End Module' Import the IronOcr namespace to use its components
Imports IronOcr
Module Program
Sub Main()
' Initialize a new IronTesseract object for OCR
Dim Ocr As New IronTesseract()
' Set the OCR language to Tibetan
Ocr.Language = OcrLanguage.Tibetan
' Use a Using statement for automatic resource disposal
Using Input As New OcrInput("images\Tibetan.png")
' Perform OCR to read text from the input image
Dim Result = Ocr.Read(Input)
' Retrieve all recognized text from the OCR Result
Dim AllText = Result.Text
' Output the recognized text to the console
' Note: Ensure that the console supports Tibetan script for correct display
Console.WriteLine(AllText)
End Using
End Sub
End ModuleNotas
- A biblioteca OCR (
IronTesseract) está configurada para ler o idioma tibetano a partir da imagem fornecida. OcrInputlida com o carregamento da imagem de entrada e garante o descarte correto dos recursos usando a instruçãousing.Result.Textcontém o texto processado por OCR que pode ser impresso ou usado dentro da aplicação.
Curtis Chau é bacharel em Ciência da Computação (Universidade Carleton) e se especializa em desenvolvimento front-end, com experiência em Node.js, TypeScript, JavaScript e React. Apaixonado por criar interfaces de usuário intuitivas e esteticamente agradáveis, Curtis gosta de trabalhar com frameworks modernos e criar manuais bem estruturados e visualmente atraentes.