Georgian OCR in C# and .NET

This article was translated from English: Does it need improvement?
Translated
View the article in English
Other versions of this document:

IronOCR是一個C#軟體元件,允許.NET程式員從圖像和PDF文件中讀取126種語言的文字,包括喬治亞語。

它是 Tesseract 的高級分支,專為 .NET 開發者而建造,並且在速度和精度上經常優於其他 Tesseract 引擎。

IronOcr.Languages.Georgian的內容

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

  • GeorgianAlphabet
  • GeorgianAlphabetBest
  • GeorgianAlphabetFast
  • Georgian
  • GeorgianBest
  • GeorgianFast
  • GeorgianOld
  • GeorgianOldBest
  • GeorgianOldFast

下載

喬治亞語語言包 [ქართული]

安裝

我們需要做的第一件事是安裝你的.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引擎,處理指定的圖像文件,並輸出提取的文字。