塔纳字母OCR在C#和.NET中
This article was translated from English: Does it need improvement?
TranslatedView the article in English
IronOCR是一个C#软件组件,允许.NET编程人员从图片和PDF文档中读取文本,支持126种语言,包括Thaana字母表。
这是Tesseract的一个高级分支,专门为.NET开发者设计,并且在速度和精确度方面经常超过其他Tesseract引擎。
IronOcr.Languages.Thaana的内容
此软件包包含67种面向 .NET 的OCR语言:
ThaanaAlphabet
ThaanaAlphabetBest
- ThaanaAlphabetFast
下载
塔纳字母语言包 [塔娜]
安装
我们首先需要做的是将我们的Thaana Alphabet OCR包安装到您的.NET项目中。
PM> Install-Package IronOCR.Languages.Thaana
代码示例
此C#代码示例从图像或PDF文档中读取Thaana字母文本。
//PM> Install-Package IronOcr.Languages.Thaana
using IronOcr;
var Ocr = new IronTesseract();
Ocr.Language = OcrLanguage.Thaana;
using (var Input = new OcrInput(@"images\Thaana.png"))
{
var Result = Ocr.Read(Input);
var AllText = Result.Text;
}
//PM> Install-Package IronOcr.Languages.Thaana
using IronOcr;
var Ocr = new IronTesseract();
Ocr.Language = OcrLanguage.Thaana;
using (var Input = new OcrInput(@"images\Thaana.png"))
{
var Result = Ocr.Read(Input);
var AllText = Result.Text;
}
'PM> Install-Package IronOcr.Languages.Thaana
Imports IronOcr
Private Ocr = New IronTesseract()
Ocr.Language = OcrLanguage.Thaana
Using Input = New OcrInput("images\Thaana.png")
Dim Result = Ocr.Read(Input)
Dim AllText = Result.Text
End Using
VB C#