IronOCR 語言 德國 German 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 Other versions of this document: 德文版 其他125種OCR語言 IronOCR 是一個 C# 軟體元件,允許 .NET 程式設計師從圖像和 PDF 文件中讀取包含德文在內的 126 種語言的文本。 它是一個專為 .NET 開發者設計的 Tesseract 高級分支,在速度和準確性方面經常優於其他 Tesseract 引擎。 IronOcr.Languages.German 的內容 此套件包含 61 種 .NET 的 OCR 語言: 德文 德文Best 德文Fast 德文Fraktur 下載 德文語言包 style='white-space:default'>[Deutsch] 下載為 壓縮檔 使用 NuGet 安裝 安裝 我們首先需要做的是安裝我們的 德文 OCR 套件到您的 .NET 專案。 Install-Package IronOCR.Languages.German 代碼示例 這個 C# 程式範例從圖像或 PDF 文件中讀取德文文本。 using IronOcr; var Ocr = new IronTesseract(); // Set the OCR language to German. This must match the language of the document you are scanning. Ocr.Language = OcrLanguage.German; using (var Input = new OcrInput(@"images\German.png")) { // Perform OCR on the provided image and get the result. var Result = Ocr.Read(Input); // Extract all recognized text from the OCR result. var AllText = Result.Text; // Optionally, output the recognized text to the console for verification. Console.WriteLine(AllText); } using IronOcr; var Ocr = new IronTesseract(); // Set the OCR language to German. This must match the language of the document you are scanning. Ocr.Language = OcrLanguage.German; using (var Input = new OcrInput(@"images\German.png")) { // Perform OCR on the provided image and get the result. var Result = Ocr.Read(Input); // Extract all recognized text from the OCR result. var AllText = Result.Text; // Optionally, output the recognized text to the console for verification. Console.WriteLine(AllText); } Imports IronOcr Private Ocr = New IronTesseract() ' Set the OCR language to German. This must match the language of the document you are scanning. Ocr.Language = OcrLanguage.German Using Input = New OcrInput("images\German.png") ' Perform OCR on the provided image and get the result. Dim Result = Ocr.Read(Input) ' Extract all recognized text from the OCR result. Dim AllText = Result.Text ' Optionally, output the recognized text to the console for verification. Console.WriteLine(AllText) End Using $vbLabelText $csharpLabel 在此範例中,IronTesseract 配置為使用德文進行 OCR,這是處理包含德文文本的圖像或 PDF 所必需的。 OcrInput 類用於指定圖像文件,Read 方法執行 OCR 操作,並返回擷取的文本。