OCR Dzongkha en C# y .NET

This article was translated from English: Does it need improvement?
Translated
View the article in English

126 idiomas más

IronOCR es un componente de software C# que permite a los programadores de .NET leer texto de imágenes y documentos PDF en 126 idiomas, incluyendo el dzongkha.

Es una rama avanzada de Tesseract, construida exclusivamente para desarrolladores de .NET y supera regularmente a otros motores de Tesseract tanto en velocidad como en precisión.

Contenido de IronOcr.Languages.Dzongkha

Este paquete contiene 49 idiomas OCR para .NET:

  • Dzongkha
  • DzongkhaBest
  • DzongkhaFast

Descargar

Paquete de idioma dzongkha [རང་ཁ]

Instalación

Lo primero que tenemos que hacer es instalar nuestro paquete OCR de dzongkha en tu proyecto .NET.

Install-Package IronOCR.Languages.Dzongkha

Ejemplo de código

Este ejemplo de código C# lee texto en dzongkha desde una imagen o 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
$vbLabelText   $csharpLabel