C#和.NET中的Tatar OCR

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.Tatar的內容

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

  • Tatar
  • TatarBest
  • TatarFast

下載

塔塔爾語語言包 [татар теле]

安裝

我們要做的第一件事是將Tatar OCR套件安裝到您的.NET專案中。

Install-Package IronOcr.Languages.Tatar

程式碼範例

此C#程式碼範例從圖像或PDF文件中讀取塔塔爾語文字。

// Install the Tatar OCR Language package using NuGet
// PM> Install-Package IronOcr.Languages.Tatar
using IronOcr;

var Ocr = new IronTesseract();
// Set the language to Tatar for OCR processing
Ocr.Language = OcrLanguage.Tatar;

// Define the input source as an image or PDF containing Tatar text
using (var Input = new OcrInput(@"images\Tatar.png"))
{
    // Perform OCR to read text from the input image
    var Result = Ocr.Read(Input);
    // Retrieve the recognized text and store it in a variable
    var AllText = Result.Text;
}
// Install the Tatar OCR Language package using NuGet
// PM> Install-Package IronOcr.Languages.Tatar
using IronOcr;

var Ocr = new IronTesseract();
// Set the language to Tatar for OCR processing
Ocr.Language = OcrLanguage.Tatar;

// Define the input source as an image or PDF containing Tatar text
using (var Input = new OcrInput(@"images\Tatar.png"))
{
    // Perform OCR to read text from the input image
    var Result = Ocr.Read(Input);
    // Retrieve the recognized text and store it in a variable
    var AllText = Result.Text;
}
' Install the Tatar OCR Language package using NuGet
' PM> Install-Package IronOcr.Languages.Tatar
Imports IronOcr

Private Ocr = New IronTesseract()
' Set the language to Tatar for OCR processing
Ocr.Language = OcrLanguage.Tatar

' Define the input source as an image or PDF containing Tatar text
Using Input = New OcrInput("images\Tatar.png")
	' Perform OCR to read text from the input image
	Dim Result = Ocr.Read(Input)
	' Retrieve the recognized text and store it in a variable
	Dim AllText = Result.Text
End Using
$vbLabelText   $csharpLabel