IronOCR 語言 海地 Haitian OCR in C# and .NET Curtis Chau 更新日期:7月 27, 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.Haitian 的內容 此套件包含 .NET 的46種 OCR 語言: 海地語 海地語Best 海地語Fast 下載 海地語語言包 style='white-space:normal'>[Kreyòl ayisyen] 下載為 Zip 使用 NuGet 安裝 安裝 我們首先要做的是將我們的 海地 OCR 包安裝到您的 .NET 專案中。 Install-Package IronOCR.Languages.Haitian 代碼示例 此 C# 代碼範例從圖像或 PDF 文件中讀取海地語文本。 // Install the required IronOcr package // PM> Install-Package IronOcr.Languages.Haitian using IronOcr; class HaitianOcrExample { static void Main() { // Initialize the IronTesseract object var Ocr = new IronTesseract(); // Set the OCR language to Haitian Ocr.Language = OcrLanguage.Haitian; // Using the OcrInput class, define the path to the image or PDF using (var Input = new OcrInput(@"images\Haitian.png")) { // Read the text from the image var Result = Ocr.Read(Input); // Extract the text found in the image var AllText = Result.Text; // Output the extracted text to the console Console.WriteLine(AllText); } } } // Install the required IronOcr package // PM> Install-Package IronOcr.Languages.Haitian using IronOcr; class HaitianOcrExample { static void Main() { // Initialize the IronTesseract object var Ocr = new IronTesseract(); // Set the OCR language to Haitian Ocr.Language = OcrLanguage.Haitian; // Using the OcrInput class, define the path to the image or PDF using (var Input = new OcrInput(@"images\Haitian.png")) { // Read the text from the image var Result = Ocr.Read(Input); // Extract the text found in the image var AllText = Result.Text; // Output the extracted text to the console Console.WriteLine(AllText); } } } ' Install the required IronOcr package ' PM> Install-Package IronOcr.Languages.Haitian Imports IronOcr Friend Class HaitianOcrExample Shared Sub Main() ' Initialize the IronTesseract object Dim Ocr = New IronTesseract() ' Set the OCR language to Haitian Ocr.Language = OcrLanguage.Haitian ' Using the OcrInput class, define the path to the image or PDF Using Input = New OcrInput("images\Haitian.png") ' Read the text from the image Dim Result = Ocr.Read(Input) ' Extract the text found in the image Dim AllText = Result.Text ' Output the extracted text to the console Console.WriteLine(AllText) End Using End Sub End Class $vbLabelText $csharpLabel 此代碼片段演示了如何使用 IronTesseract 資料庫從圖像或 PDF 文件中讀取海地語文本來實現 OCR。 確保圖像或 PDF 位於指定的路徑中。 此範例假設您正在與兼容 .NET 的開發環境一起工作。