北库尔德语OCR在C#和.NET中

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

126 更多朗格

IronOCR是一个C#软件组件,允许.NET编程人员从图像和PDF文档中读取126种语言的文本,包括北库尔德语。

这是Tesseract的一个高级分支,专门为.NET开发者设计,并且在速度和精确度方面经常超过其他Tesseract引擎。

IronOcr.Languages.NorthernKurdish

此软件包包含适用于 .NET 的70种OCR语言:

NorthernKurdish

  • NorthernKurdishBest
  • NorthernKurdishFast

下载

库尔德北部语言包 [库尔曼吉]

安装

我们首先需要做的是将Northern Kurdish OCR包安装到您的 .NET 项目中。

PM> Install-Package IronOCR.Languages.NorthernKurdish

代码示例

此C#代码示例从图像或PDF文档中读取北库尔德语文本。

//PM> Install-Package IronOcr.Languages.NorthernKurdish
using IronOcr;

var Ocr = new IronTesseract();
Ocr.Language = OcrLanguage.NorthernKurdish;
using (var Input = new OcrInput(@"images\NorthernKurdish.png"))
{
    var Result = Ocr.Read(Input);
    var AllText =  Result.Text;
}
//PM> Install-Package IronOcr.Languages.NorthernKurdish
using IronOcr;

var Ocr = new IronTesseract();
Ocr.Language = OcrLanguage.NorthernKurdish;
using (var Input = new OcrInput(@"images\NorthernKurdish.png"))
{
    var Result = Ocr.Read(Input);
    var AllText =  Result.Text;
}
'PM> Install-Package IronOcr.Languages.NorthernKurdish
Imports IronOcr

Private Ocr = New IronTesseract()
Ocr.Language = OcrLanguage.NorthernKurdish
Using Input = New OcrInput("images\NorthernKurdish.png")
	Dim Result = Ocr.Read(Input)
	Dim AllText = Result.Text
End Using
VB   C#