Inuktitut OCR in C# and .NET

This article was translated from English: Does it need improvement?
Translated
View the article in English

另外 126 種語言

IronOCR 是一個 C# 軟體元件,允許 .NET 程式設計師從圖像和 PDF 文件中讀取包括 Inuktitut 在內的 126 種語言的文本。

它是一個專為 .NET 開發者設計的 Tesseract 高級分支,在速度和準確性方面經常優於其他 Tesseract 引擎。

IronOcr.Languages.Inuktitut 的內容

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

  • Inuktitut
  • InuktitutBest
  • InuktitutFast

下載

Inuktitut 語言包 style='white-space:default'>[ᐃᓄᒃᑎᑐᑦ]

安裝

第一步是將 Inuktitut OCR 套件安裝到您的 .NET 專案中:

Install-Package IronOCR.Languages.Inuktitut

代碼示例

此 C# 代碼範例從圖像或 PDF 文件中讀取 Inuktitut 文本。

// First, make sure to install the IronOcr.Languages.Inuktitut package:
// PM> Install-Package IronOcr.Languages.Inuktitut

using IronOcr;

class Program
{
    static void Main()
    {
        // Create a new instance of IronTesseract for performing OCR
        var Ocr = new IronTesseract();

        // Specify the OCR language as Inuktitut
        Ocr.Language = OcrLanguage.Inuktitut;

        // Define the input image or PDF file containing Inuktitut text
        using (var Input = new OcrInput(@"images\Inuktitut.png"))
        {
            // Perform OCR on the input file
            var Result = Ocr.Read(Input);

            // Extract and print the recognized text
            var AllText = Result.Text;
            Console.WriteLine("Recognized Inuktitut Text:");
            Console.WriteLine(AllText);
        }
    }
}
// First, make sure to install the IronOcr.Languages.Inuktitut package:
// PM> Install-Package IronOcr.Languages.Inuktitut

using IronOcr;

class Program
{
    static void Main()
    {
        // Create a new instance of IronTesseract for performing OCR
        var Ocr = new IronTesseract();

        // Specify the OCR language as Inuktitut
        Ocr.Language = OcrLanguage.Inuktitut;

        // Define the input image or PDF file containing Inuktitut text
        using (var Input = new OcrInput(@"images\Inuktitut.png"))
        {
            // Perform OCR on the input file
            var Result = Ocr.Read(Input);

            // Extract and print the recognized text
            var AllText = Result.Text;
            Console.WriteLine("Recognized Inuktitut Text:");
            Console.WriteLine(AllText);
        }
    }
}
' First, make sure to install the IronOcr.Languages.Inuktitut package:
' PM> Install-Package IronOcr.Languages.Inuktitut

Imports IronOcr

Friend Class Program
	Shared Sub Main()
		' Create a new instance of IronTesseract for performing OCR
		Dim Ocr = New IronTesseract()

		' Specify the OCR language as Inuktitut
		Ocr.Language = OcrLanguage.Inuktitut

		' Define the input image or PDF file containing Inuktitut text
		Using Input = New OcrInput("images\Inuktitut.png")
			' Perform OCR on the input file
			Dim Result = Ocr.Read(Input)

			' Extract and print the recognized text
			Dim AllText = Result.Text
			Console.WriteLine("Recognized Inuktitut Text:")
			Console.WriteLine(AllText)
		End Using
	End Sub
End Class
$vbLabelText   $csharpLabel

此代碼展示如何使用 IronOCR 從圖像中識別 Inuktitut 文本。 在將語言設定為 Inuktitut 之後,代碼處理指定的圖像文件並將識別出的文本列印到控制台。