Inuktitut OCR in C# and .NET
This article was translated from English: Does it need improvement?
Translated
View the article in English
IronOCR 是一个 C# 软件组件,允许 .NET 程序员从图像和 PDF 文档中读取 126 种语言(包括因纽特语)的文本。
它是 Tesseract 的一个高级分支,专为 .NET 开发人员构建,在速度和准确性方面通常优于其他 Tesseract 引擎。
IronOcr.Languages.Inuktitut 的内容
此软件包包含 52 种适用于 .NET 的 OCR 语言:
因纽特语
- InuktitutBest
- InuktitutFast
下载
因纽特语语言包
下载为Zip 文件
- 使用NuGet安装
安装
下载为Zip
Install-Package IronOcr.Languages.Inuktitut
代码示例
这段 C# 代码示例从图像或 PDF 文档中读取因纽特语文本。
// 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 从图像中识别因纽特语文本。 将语言设置为因纽特语后,代码会处理指定的图像文件并将识别出的文本打印到控制台。

