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 種語言(包括爪哇語)的文字。

它是 Tesseract 的一個高級分支,專為.NET開發人員構建,在速度和準確性方面通常優於其他 Tesseract 引擎。

IronOCR的內容.語言.爪哇語

此軟體包包含 49 種適用於.NET的 OCR 語言:

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

下載

爪哇語語言包[basa Jawa]

安裝

我們首先需要做的就是將我們的Javanese OCR 套件安裝到您的.NET專案中。

Install-Package IronOcr.Languages.Javanese

程式碼範例

此 C# 程式碼範例從圖像或 PDF 文件中讀取 Javanese 文字。

// 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