Dzongkha OCR in C# and .NET

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

另外 126 種語言

IronOCR 是一個 C# 軟體組件,允許 .NET 程式員從圖像和 PDF 文件中讀取 126 種語言的文字,包括宗喀語。

它是一個專為 .NET 開發者設計的 Tesseract 高級分支,在速度和準確性方面經常優於其他 Tesseract 引擎。

IronOcr.Languages.Dzongkha 的內容

該套件包含 49 種 .NET 的 OCR 語言:

  • 宗喀語
  • 宗喀語最佳
  • 宗喀語快速

下載

宗喀語語言包 style='white-space:default'>[རང་ཁ]

安裝

首先我們需要將 宗喀語 OCR 套件安裝到您的 .NET 專案中。

Install-Package IronOCR.Languages.Dzongkha

代碼示例

這個 C# 代碼範例從圖像或 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