Dzongkha 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 dzongkha.
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.Idiomas.Dzongkha
Este pacote contém 49 idiomas de OCR for .NET:
- Dzongkha
- DzongkhaBest
- DzongkhaFast
Baixar
Pacote de idiomas Dzongkha [རང་ཁ]
Instalação
A primeira coisa que precisamos fazer é instalar nosso pacote OCR Dzongkha em seu projeto .NET .
Install-Package IronOcr.Languages.Dzongkha
Exemplo de código
Este exemplo de código C# lê texto em dzongkha de uma imagem ou documento PDF.
// Ensure to install the IronOcr.Languages.Dzongkha package before use.
// Usage of IronOCR library for reading Dzongkha text from images or PDFs.
using IronOcr;
var Ocr = new IronTesseract();
// Set the OCR language to Dzongkha
Ocr.Language = OcrLanguage.Dzongkha;
// Specify the path to the input image file
using (var Input = new OcrInput(@"images\Dzongkha.png"))
{
// Reading text from the input file
var Result = Ocr.Read(Input);
// Retrieve all the recognized text
var AllText = Result.Text;
// Output the recognized text
Console.WriteLine(AllText);
}
// Ensure to install the IronOcr.Languages.Dzongkha package before use.
// Usage of IronOCR library for reading Dzongkha text from images or PDFs.
using IronOcr;
var Ocr = new IronTesseract();
// Set the OCR language to Dzongkha
Ocr.Language = OcrLanguage.Dzongkha;
// Specify the path to the input image file
using (var Input = new OcrInput(@"images\Dzongkha.png"))
{
// Reading text from the input file
var Result = Ocr.Read(Input);
// Retrieve all the recognized text
var AllText = Result.Text;
// Output the recognized text
Console.WriteLine(AllText);
}
' Ensure to install the IronOcr.Languages.Dzongkha package before use.
' Usage of IronOCR library for reading Dzongkha text from images or PDFs.
Imports IronOcr
Private Ocr = New IronTesseract()
' Set the OCR language to Dzongkha
Ocr.Language = OcrLanguage.Dzongkha
' Specify the path to the input image file
Using Input = New OcrInput("images\Dzongkha.png")
' Reading text from the input file
Dim Result = Ocr.Read(Input)
' Retrieve all the recognized text
Dim AllText = Result.Text
' Output the recognized text
Console.WriteLine(AllText)
End Using

