Nepali OCR in C# and .NET

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

IronOCR 是一個 C# 軟體元件,允許 .NET 編碼人員從圖像和 PDF 文件中讀取文字,語言包括尼泊爾語等 126 種。

它是 Tesseract 的進階分叉,專為 .NET 開發人員打造,在速度和精確度上都經常超越其他 Tesseract 引擎。

IronOcr.Languages.Nepali的內容

本套件包含 43 種 .NET 的 OCR 語言:

  • 尼泊爾語
  • 尼泊爾最佳
  • 快譯通

下載

[नपाली] * 下載為 Zip * 使用 NuGet 安裝

安裝

程式碼範例 Install-Package IronOcr.Languages.Nepali // Import the IronOcr namespace to access the required OCR functionalities. using IronOcr; class NepaliOcrExample { public void ReadNepaliText() { // Create an instance of IronTesseract, the main class for performing OCR tasks. var Ocr = new IronTesseract(); // Set the language to Nepali. Ensure you have the Nepali language package installed. Ocr.Language = OcrLanguage.Nepali; // Specify the input image or PDF file which contains Nepali text. using (var Input = new OcrInput(@"images\Nepali.png")) { // Perform the OCR operation on the input and get the result. var Result = Ocr.Read(Input); // Extract the recognized text from the result. var AllText = Result.Text; // Print the recognized text to the console. System.Console.WriteLine(AllText); } } } ```