IronOCR 語言 保加利亚语 Bulgarian 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種語言的文本,包括保加利亞語。 它是Tesseract 的一個高級分支,專為 .NET 開發人員構建,並且在速度和準確性上經常超過其他 Tesseract 發動機。 IronOcr.Languages.Bulgarian 的內容 此套件包含 52 種 .NET 的 OCR 語言: Bulgarian BulgarianBest BulgarianFast 下載 保加利亞語語言包 style='white-space:default'>[български език] 下載為 Zip 安裝使用 NuGet 安裝 我們必須做的第一件事是將我們的保加利亞語OCR 包安裝到您的 .NET 專案中。 Install-Package IronOCR.Languages.Bulgarian 代碼示例 此 C# 代碼示例從圖像或 PDF 文檔中讀取保加利亞語文本。 // Ensure you have installed the IronOCR language package for Bulgarian // PM> Install-Package IronOcr.Languages.Bulgarian using IronOcr; var Ocr = new IronTesseract(); // Set the OCR language to Bulgarian Ocr.Language = OcrLanguage.Bulgarian; // Load the image or PDF document containing Bulgarian text using (var Input = new OcrInput(@"images\Bulgarian.png")) { // Perform OCR and obtain the result var Result = Ocr.Read(Input); // Extract all the text from the OCR result var AllText = Result.Text; // Optionally, print or use the extracted text as needed Console.WriteLine(AllText); } // Ensure you have installed the IronOCR language package for Bulgarian // PM> Install-Package IronOcr.Languages.Bulgarian using IronOcr; var Ocr = new IronTesseract(); // Set the OCR language to Bulgarian Ocr.Language = OcrLanguage.Bulgarian; // Load the image or PDF document containing Bulgarian text using (var Input = new OcrInput(@"images\Bulgarian.png")) { // Perform OCR and obtain the result var Result = Ocr.Read(Input); // Extract all the text from the OCR result var AllText = Result.Text; // Optionally, print or use the extracted text as needed Console.WriteLine(AllText); } ' Ensure you have installed the IronOCR language package for Bulgarian ' PM> Install-Package IronOcr.Languages.Bulgarian Imports IronOcr Private Ocr = New IronTesseract() ' Set the OCR language to Bulgarian Ocr.Language = OcrLanguage.Bulgarian ' Load the image or PDF document containing Bulgarian text Using Input = New OcrInput("images\Bulgarian.png") ' Perform OCR and obtain the result Dim Result = Ocr.Read(Input) ' Extract all the text from the OCR result Dim AllText = Result.Text ' Optionally, print or use the extracted text as needed Console.WriteLine(AllText) End Using $vbLabelText $csharpLabel 根據此示例: 我們創建一個 IronTesseract 物件來執行 OCR 操作。 我們使用 OcrLanguage.Bulgarian 設置 OCR 的語言為保加利亞語。 我們將圖像文件 Bulgarian.png 加載到 OcrInput 物件中。 我们使用 Ocr.Read(Input) 从图像中提取文本。 最后,使用 Result.Text 访问提取的文本。