Uyghur OCR in C# and .NET
This article was translated from English: Does it need improvement?
Translated
View the article in English
本文件的其他版本:
IronOCR 是一個 C# 軟體元件,讓 .NET 開發人員能夠從 126 種語言(包括維吾爾語)的圖片和 PDF 文件中讀取文字。
這是 Tesseract 的進階分支版本,專為 .NET 開發人員打造,無論在速度或準確度方面,其表現均經常優於其他 Tesseract 引擎。
IronOcr.Languages.Uyghur 的內容
此套件包含 43 種適用於 .NET 的 OCR 語言:
- 維吾爾語
- 維吾爾語Best
- 維吾爾語Fast
下載
維吾爾語語言套件 [Uyƣurqə]
安裝
我們首先必須將維吾爾語 OCR 套件安裝至您的 .NET 專案中。
Install-Package IronOcr.Languages.Uyghur
程式碼範例
此 C# 程式碼範例用於從圖片或 PDF 文件中讀取維吾爾語文字。
using IronOcr;
var Ocr = new IronTesseract();
// Set the OCR language to Uyghur. This is necessary to correctly read Uyghur text.
Ocr.Language = OcrLanguage.Uyghur;
// Create an OCR input object from a file. This can be an image or a PDF.
using (var Input = new OcrInput(@"images\Uyghur.png"))
{
// Perform text recognition on the input data.
var Result = Ocr.Read(Input);
// Extract the recognized text from the OCR result.
var AllText = Result.Text;
// Additional processing of AllText can be done here.
}
using IronOcr;
var Ocr = new IronTesseract();
// Set the OCR language to Uyghur. This is necessary to correctly read Uyghur text.
Ocr.Language = OcrLanguage.Uyghur;
// Create an OCR input object from a file. This can be an image or a PDF.
using (var Input = new OcrInput(@"images\Uyghur.png"))
{
// Perform text recognition on the input data.
var Result = Ocr.Read(Input);
// Extract the recognized text from the OCR result.
var AllText = Result.Text;
// Additional processing of AllText can be done here.
}
Imports IronOcr
Private Ocr = New IronTesseract()
' Set the OCR language to Uyghur. This is necessary to correctly read Uyghur text.
Ocr.Language = OcrLanguage.Uyghur
' Create an OCR input object from a file. This can be an image or a PDF.
Using Input = New OcrInput("images\Uyghur.png")
' Perform text recognition on the input data.
Dim Result = Ocr.Read(Input)
' Extract the recognized text from the OCR result.
Dim AllText = Result.Text
' Additional processing of AllText can be done here.
End Using
$vbLabelText
$csharpLabel

