C# 和 .NET 中的爪哇語 OCR
This article was translated from English: Does it need improvement?
TranslatedView the article in English
IronOCR 是一個 C# 軟體元件,允許 .NET 程式設計師從圖像和 PDF 文件中讀取 126 種語言(包括爪哇語)的文字。
它是 Tesseract 的一個高級分支,專為 .NET 開發人員構建,在速度和準確性方面通常優於其他 Tesseract 引擎。
IronOcr.Languages.Javanese 的內容
此軟體包包含 49 種適用於 .NET 的 OCR 語言:
- 爪哇語
- 爪哇語Best
- 爪哇語Fast
下載
爪哇語語言包[爪哇語]
安裝
我們首先需要做的是將我們的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;
}$vbLabelText $csharpLabel





