C#和.NET中的Tatar OCR
Curtis Chau
Updated: 2026年5月9日
此文件的其他版本:
IronOCR是一個C#軟體元件,允許.NET程式設計師從圖像和PDF文件中識別包括塔塔爾語在內的126種語言的文字。
它是Tesseract的一個高級分支,專為.NET開發人員而建,而且在速度和準確性方面經常優於其他Tesseract引擎。
IronOcr.Languages.Tatar的內容
此套件包含40種.NET的OCR語言:
- Tatar
- TatarBest
- TatarFast
下載
塔塔爾語語言包 [татар теле]
安裝
我們要做的第一件事是將Tatar OCR套件安裝到您的.NET專案中。
程式碼範例
此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
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
技術作家
Curtis Chau擁有Carleton大學的電腦科學學士學位,專精於前端開發,擁有Node.js、TypeScript、JavaScript和React的專業知識。Curtis熱衷於建立直觀且美觀的使用者介面,喜愛使用現代框架並建立結構良好、視覺吸引力的手冊。
...
閱讀更多