Javanese 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.Javanese 的內容

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

  • 爪哇語
  • 爪哇語Best
  • 爪哇語Fast

下載

爪哇語語言包 style='white-space:default'>[basa Jawa]

安裝

我們首先要做的就是將我們的 爪哇語 OCR 套件安裝到您的 .NET 項目中。

Install-Package IronOCR.Languages.Javanese

代碼示例

此 C# 代碼範例從圖像或 PDF 文檔中讀取爪哇語文字。

// Import the IronOCR namespace to use its OCR functionalities
using IronOcr;

var Ocr = new IronTesseract(); // Create a new instance of the IronTesseract class
Ocr.Language = OcrLanguage.Javanese; // Set the OCR language to Javanese

// Use the OcrInput class to specify the image or PDF document that will be read
using (var Input = new OcrInput(@"images\Javanese.png"))
{
    // Perform OCR on the specified input
    var Result = Ocr.Read(Input);

    // Retrieve all recognized text from the result
    var AllText = Result.Text;
}
// Import the IronOCR namespace to use its OCR functionalities
using IronOcr;

var Ocr = new IronTesseract(); // Create a new instance of the IronTesseract class
Ocr.Language = OcrLanguage.Javanese; // Set the OCR language to Javanese

// Use the OcrInput class to specify the image or PDF document that will be read
using (var Input = new OcrInput(@"images\Javanese.png"))
{
    // Perform OCR on the specified input
    var Result = Ocr.Read(Input);

    // Retrieve all recognized text from the result
    var AllText = Result.Text;
}
' Import the IronOCR namespace to use its OCR functionalities
Imports IronOcr

Private Ocr = New IronTesseract() ' Create a new instance of the IronTesseract class
Ocr.Language = OcrLanguage.Javanese ' Set the OCR language to Javanese

' Use the OcrInput class to specify the image or PDF document that will be read
Using Input = New OcrInput("images\Javanese.png")
	' Perform OCR on the specified input
	Dim Result = Ocr.Read(Input)

	' Retrieve all recognized text from the result
	Dim AllText = Result.Text
End Using
$vbLabelText   $csharpLabel