Javanese OCR in C# and .NET
Curtis Chau
Updated: 2026年4月23日
IronOCR 是一個 C# 軟體元件,讓 .NET 程式設計師能夠從 126 種語言(包括爪哇語)的圖片和 PDF 文件中讀取文字。
這是 Tesseract 的進階分支版本,專為 .NET 開發人員打造,無論在速度或準確度方面,其表現均經常優於其他 Tesseract 引擎。
IronOcr.Languages.Javanese 的內容
此套件包含 49 種適用於 .NET 的 OCR 語言:
- 爪哇語
- 爪哇語Best
- 爪哇語Fast
下載
爪哇語語言套件 [basa Jawa]
安裝
我們首先必須將 Javanese OCR 套件安裝至您的 .NET 專案中。
程式碼範例
此 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
Imports IronOcr
Dim Ocr As 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 As 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
技術作家
Curtis Chau擁有Carleton大學的電腦科學學士學位,專精於前端開發,擁有Node.js、TypeScript、JavaScript和React的專業知識。Curtis熱衷於建立直觀且美觀的使用者介面,喜愛使用現代框架並建立結構良好、視覺吸引力的手冊。
...
閱讀更多