IronOCR 語言 金融 Financial OCR in C# and .NET Curtis Chau 更新日期:7月 22, 2025 Download IronOCR NuGet 下載 DLL 下載 Windows 安裝程式 Start Free Trial Copy for LLMs Copy for LLMs Copy page as Markdown for LLMs Open in ChatGPT Ask ChatGPT about this page Open in Gemini Ask Gemini about this page Open in Grok Ask Grok about this page Open in Perplexity Ask Perplexity about this page Share Share on Facebook Share on X (Twitter) Share on LinkedIn Copy URL Email article This article was translated from English: Does it need improvement? Translated View the article in English 另外 126 種語言 IronOCR 是一個 C# 軟體組件,允許 .NET 程式設計師從圖像和 PDF 文件中讀取包括金融在內的 126 種語言的文字。 它是一個專為 .NET 開發者設計的 Tesseract 高級分支,在速度和準確性方面經常優於其他 Tesseract 引擎。 IronOcr.Languages.Financial的內容 此包包含 16 種適用於 .NET 的 OCR 語言: 金融 下載 金融語言包 [Financial] 下載為 Zip 使用 NuGet 安裝 安裝 我們要做的第一件事就是將我們的 Financial OCR 包安裝到您的 .NET 項目。 Install-Package IronOCR.Languages.Financial 代碼示例 此 C# 代碼示例從圖像或 PDF 文件中讀取金融文本。 // Import the IronOcr namespace using IronOcr; // Instantiate the IronTesseract OCR engine var Ocr = new IronTesseract(); // Set the OCR language to Financial Ocr.Language = OcrLanguage.Financial; // Create an OCR input object, specifying the path to the image or PDF using (var Input = new OcrInput(@"images\Financial.png")) { // Perform OCR to read text from the input var Result = Ocr.Read(Input); // Retrieve the extracted text var AllText = Result.Text; } // Import the IronOcr namespace using IronOcr; // Instantiate the IronTesseract OCR engine var Ocr = new IronTesseract(); // Set the OCR language to Financial Ocr.Language = OcrLanguage.Financial; // Create an OCR input object, specifying the path to the image or PDF using (var Input = new OcrInput(@"images\Financial.png")) { // Perform OCR to read text from the input var Result = Ocr.Read(Input); // Retrieve the extracted text var AllText = Result.Text; } ' Import the IronOcr namespace Imports IronOcr ' Instantiate the IronTesseract OCR engine Private Ocr = New IronTesseract() ' Set the OCR language to Financial Ocr.Language = OcrLanguage.Financial ' Create an OCR input object, specifying the path to the image or PDF Using Input = New OcrInput("images\Financial.png") ' Perform OCR to read text from the input Dim Result = Ocr.Read(Input) ' Retrieve the extracted text Dim AllText = Result.Text End Using $vbLabelText $csharpLabel 說明: 使用 IronOcr: 此命名空間包括所有必需的 OCR 進程類。 IronTesseract 類: 這是啟用 OCR 任務的主要類。 語言設置: 將語言設置為 Financial 使 OCR 引擎能夠識別金融術語。 OcrInput 類: 它需要一個文件路徑,以指定要處理的圖像或 PDF 文件。 Read 方法: 在 Ocr.Read(Input) 上執行時,它根據提供的輸入和語言設置處理圖像以檢索文字。 Result.Text: 它存儲從圖像或 PDF 中識別的文字。