Georgian OCR in C# and .NET

This article was translated from English: Does it need improvement?
Translated
View the article in English
本文件的其他版本:

IronOCR 是一款 C# 軟體元件,讓 .NET 程式設計師能夠從 126 種語言(包括格魯吉亞語)的圖片和 PDF 文件中讀取文字。

這是 Tesseract 的進階分支版本,專為 .NET 開發人員打造,無論在速度或準確度上,表現均定期優於其他 Tesseract 引擎。

IronOcr.Languages.Georgian 的內容

此套件包含 176 種適用於 .NET 的 OCR 語言:

  • 格魯吉亞字母
  • 格魯吉亞字母Best
  • 格魯吉亞字母Fast
  • 格魯吉亞語
  • 格魯吉亞語Best
  • 格魯吉亞語Fast
  • 格魯吉亞語Old
  • 格魯吉亞語OldBest
  • 格魯吉亞語OldFast

下載

格魯吉亞語語言套件 [ქართული]

安裝

首先,我們需要在您的 .NET 專案中安裝格魯吉亞語 OCR 套件。

Install-Package IronOcr.Languages.Georgian

程式碼範例

此 C# 程式碼範例展示如何使用 IronOCR程式庫,從圖片或 PDF 文件中讀取格魯吉亞語文字。

// Ensure that the IronOCR library and the Georgian language pack are installed.
// You can install the package using the following NuGet command:
// PM> Install-Package IronOcr.Languages.Georgian

using IronOcr;

class Program
{
    static void Main()
    {
        // Initialize a new instance of the IronTesseract class
        var Ocr = new IronTesseract();

        // Set the OCR language to Georgian
        Ocr.Language = OcrLanguage.Georgian;

        // Use a using statement to manage resources efficiently
        using (var Input = new OcrInput(@"images\Georgian.png"))
        {
            // Read the image and extract text
            var Result = Ocr.Read(Input);

            // Obtain the recognized text from the OCR result
            var AllText = Result.Text;

            // Output the recognized text to the console
            Console.WriteLine("Recognized Text: " + AllText);
        }
    }
}
// Ensure that the IronOCR library and the Georgian language pack are installed.
// You can install the package using the following NuGet command:
// PM> Install-Package IronOcr.Languages.Georgian

using IronOcr;

class Program
{
    static void Main()
    {
        // Initialize a new instance of the IronTesseract class
        var Ocr = new IronTesseract();

        // Set the OCR language to Georgian
        Ocr.Language = OcrLanguage.Georgian;

        // Use a using statement to manage resources efficiently
        using (var Input = new OcrInput(@"images\Georgian.png"))
        {
            // Read the image and extract text
            var Result = Ocr.Read(Input);

            // Obtain the recognized text from the OCR result
            var AllText = Result.Text;

            // Output the recognized text to the console
            Console.WriteLine("Recognized Text: " + AllText);
        }
    }
}
' Ensure that the IronOCR library and the Georgian language pack are installed.
' You can install the package using the following NuGet command:
' PM> Install-Package IronOcr.Languages.Georgian

Imports IronOcr

Friend Class Program
	Shared Sub Main()
		' Initialize a new instance of the IronTesseract class
		Dim Ocr = New IronTesseract()

		' Set the OCR language to Georgian
		Ocr.Language = OcrLanguage.Georgian

		' Use a using statement to manage resources efficiently
		Using Input = New OcrInput("images\Georgian.png")
			' Read the image and extract text
			Dim Result = Ocr.Read(Input)

			' Obtain the recognized text from the OCR result
			Dim AllText = Result.Text

			' Output the recognized text to the console
			Console.WriteLine("Recognized Text: " & AllText)
		End Using
	End Sub
End Class
$vbLabelText   $csharpLabel

此腳本會初始化一個針對格魯吉亞語配置的 OCR 引擎,處理指定的圖像檔案,並輸出擷取的文字。