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

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

  • 斯洛伐克語
  • 斯洛伐克最佳
  • 斯洛伐克快譯通
  • 斯洛伐克語

下載

* 使用 [NuGet](https://www.nuget.org/packages/IronOcr.Languages.Slovak/) 安裝

安裝

程式碼範例 Install-Package IronOcr.Languages.Slovak using IronOcr; class SlovakOcrExample { static void Main() { // Create an instance of IronTesseract for OCR processing var Ocr = new IronTesseract(); // Set the language to Slovak Ocr.Language = OcrLanguage.Slovak; // Using an OcrInput to specify the source of the image or PDF using (var Input = new OcrInput(@"images\Slovak.png")) { // Perform OCR to read the text from the input image or PDF var Result = Ocr.Read(Input); // Extract all recognized text var AllText = Result.Text; // Output the extracted text to the console Console.WriteLine(AllText); } } } ``` 本範例示範如何使用 IronOCR 函式庫閱讀斯洛伐克語文字。 它從建立 `IronTesseract` 的實例開始,指定斯洛伐克語為 OCR 語言,並處理位於 `images/Slovak.png` 的輸入影像。 最後,擷取並輸出從影像中辨識出的文字。