Uzbek OCR in C# and .NET
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的內容.語言.烏茲別克語
此軟體包包含 102 種適用於.NET的 OCR 語言:
- 烏茲別克語
- 烏茲別克語Best
- 烏茲別克語Fast
- 烏茲別克西里爾字母
- 烏茲別克西里爾字母最佳
- 烏茲別克語西里爾字母快速
下載
烏茲別克語語言包[O'zbek]
安裝
我們首先需要做的就是將我們的烏茲別克語OCR 套件安裝到您的.NET專案中。
PM> Install-Package IronOcr.Languages.Uzbek
程式碼範例
此 C# 程式碼範例從圖像或 PDF 文件中讀取烏茲別克文本。
// Ensure you have installed the Uzbek language package for IronOCR
// PM> Install-Package IronOcr.Languages.Uzbek
using IronOcr;
namespace UzbekOcrExample
{
class Program
{
static void Main(string[] args)
{
// Initialize the IronTesseract object
var Ocr = new IronTesseract();
// Set the OCR language to Uzbek
Ocr.Language = OcrLanguage.Uzbek;
// Specify the file path of the image or PDF containing Uzbek text
using (var Input = new OcrInput(@"images\Uzbek.png"))
{
// Perform OCR on the input and get the result
var Result = Ocr.Read(Input);
// Extract all recognized text from the result
var AllText = Result.Text;
// Output the recognized text to the console
Console.WriteLine(AllText);
}
}
}
}
// Ensure you have installed the Uzbek language package for IronOCR
// PM> Install-Package IronOcr.Languages.Uzbek
using IronOcr;
namespace UzbekOcrExample
{
class Program
{
static void Main(string[] args)
{
// Initialize the IronTesseract object
var Ocr = new IronTesseract();
// Set the OCR language to Uzbek
Ocr.Language = OcrLanguage.Uzbek;
// Specify the file path of the image or PDF containing Uzbek text
using (var Input = new OcrInput(@"images\Uzbek.png"))
{
// Perform OCR on the input and get the result
var Result = Ocr.Read(Input);
// Extract all recognized text from the result
var AllText = Result.Text;
// Output the recognized text to the console
Console.WriteLine(AllText);
}
}
}
}
' Ensure you have installed the Uzbek language package for IronOCR
' PM> Install-Package IronOcr.Languages.Uzbek
Imports IronOcr
Namespace UzbekOcrExample
Friend Class Program
Shared Sub Main(ByVal args() As String)
' Initialize the IronTesseract object
Dim Ocr = New IronTesseract()
' Set the OCR language to Uzbek
Ocr.Language = OcrLanguage.Uzbek
' Specify the file path of the image or PDF containing Uzbek text
Using Input = New OcrInput("images\Uzbek.png")
' Perform OCR on the input and get the result
Dim Result = Ocr.Read(Input)
' Extract all recognized text from the result
Dim AllText = Result.Text
' Output the recognized text to the console
Console.WriteLine(AllText)
End Using
End Sub
End Class
End Namespace
$vbLabelText
$csharpLabel

