IronOCR 語言 Tonga Tonga OCR in C# and .NET Curtis Chau 更新:2026年1月31日 下載 IronOCR NuGet 下載 DLL 下載 Windows 安裝程式 開始免費試用 LLM副本 LLM副本 將頁面複製為 Markdown 格式,用於 LLMs 在 ChatGPT 中打開 請向 ChatGPT 諮詢此頁面 在雙子座打開 請向 Gemini 詢問此頁面 在 Grok 中打開 向 Grok 詢問此頁面 打開困惑 向 Perplexity 詢問有關此頁面的信息 分享 在 Facebook 上分享 分享到 X(Twitter) 在 LinkedIn 上分享 複製連結 電子郵件文章 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的內容。語言。東加語 此軟體包包含三個專門用於湯加語的OCR語言模型: 東加 東加Best 東加Fast 下載 湯加語言包[faka Tonga] 下載為Zip檔。 使用NuGet安裝。 安裝 若要開始使用Tonga OCR 功能,請使用下列NuGet指令將 Tonga OCR 套件安裝到您的.NET專案中: Install-Package IronOcr.Languages.Tonga 程式碼範例 以下 C# 程式碼範例示範如何使用IronOCR從圖像或 PDF 文件中讀取湯加語文字。 // Include the necessary IronOcr namespace using IronOcr; class TongaOcrExample { static void Main() { // Initialize the IronTesseract OCR engine var Ocr = new IronTesseract(); // Set the OCR engine to use the Tonga language pack Ocr.Language = OcrLanguage.Tonga; // Load the input image or PDF into OcrInput using (var Input = new OcrInput(@"images\Tonga.png")) { // Perform OCR to read the text from the image var Result = Ocr.Read(Input); // Retrieve the full text recognition result var AllText = Result.Text; // Output the result or process further as needed System.Console.WriteLine(AllText); } } } // Include the necessary IronOcr namespace using IronOcr; class TongaOcrExample { static void Main() { // Initialize the IronTesseract OCR engine var Ocr = new IronTesseract(); // Set the OCR engine to use the Tonga language pack Ocr.Language = OcrLanguage.Tonga; // Load the input image or PDF into OcrInput using (var Input = new OcrInput(@"images\Tonga.png")) { // Perform OCR to read the text from the image var Result = Ocr.Read(Input); // Retrieve the full text recognition result var AllText = Result.Text; // Output the result or process further as needed System.Console.WriteLine(AllText); } } } $vbLabelText $csharpLabel 此程式碼範例示範如何初始化 IronTesseract OCR 引擎並將其設定為使用湯加語。 我們將指定路徑中的映像載入到 OcrInput 物件中。 Ocr.Read() 方法處理輸入以提取文本,然後我們透過 Result.Text 屬性檢索識別的文本。 最後,提取的文字可以根據需要在應用程式中輸出或處理。