C# と .NET でのアゼルバイジャン語 OCR
Other versions of this document:
IronOCR は、.NET コーダーがアゼルバイジャン語を含む 126 の言語で画像や PDF ドキュメントからテキストを読み取ることを可能にする C# ソフトウェア コンポーネントです。
これはTesseractの高度なフォークであり、.NET開発者専用に構築され、速度と精度の両方で他のTesseractエンジンを定期的に上回ります。
IronOcr.Languages.Azerbaijani の内容
このパッケージには、.NET 用の 138 個の OCR 言語が含まれています。
- アゼルバイジャン語
- アゼルバイジャン語ベスト
- アゼルバイジャンファースト
- アゼルバイジャン語キリル文字
- アゼルバイジャン語キリル文字ベスト
- アゼルバイジャン語キリル文字高速
ダウンロード
アゼルバイジャン語言語パック[アゼルバイジャン語]
インストール
最初に、アゼルバイジャン語OCR パッケージを .NET プロジェクトにインストールする必要があります。
Install-Package IronOCR.Languages.Azerbaijani
Code Example
この C# コード例は、画像または PDF ドキュメントからアゼルバイジャン語のテキストを読み取ります。
// Ensure the IronOCR Azerbaijani language package is installed
// PM> Install-Package IronOCR.Languages.Azerbaijani
using IronOcr;
class Program
{
static void Main()
{
// Create a new instance of IronTesseract engine
var Ocr = new IronTesseract();
// Specify the language to be Azerbaijani
Ocr.Language = OcrLanguage.Azerbaijani;
// Provide the path to the image file containing Azerbaijani text
using (var Input = new OcrInput(@"images\Azerbaijani.png"))
{
// Process the image to extract text
var Result = Ocr.Read(Input);
// Extracted text is stored in Result.Text
var AllText = Result.Text;
// Output the extracted text
Console.WriteLine(AllText);
}
}
}// Ensure the IronOCR Azerbaijani language package is installed
// PM> Install-Package IronOCR.Languages.Azerbaijani
using IronOcr;
class Program
{
static void Main()
{
// Create a new instance of IronTesseract engine
var Ocr = new IronTesseract();
// Specify the language to be Azerbaijani
Ocr.Language = OcrLanguage.Azerbaijani;
// Provide the path to the image file containing Azerbaijani text
using (var Input = new OcrInput(@"images\Azerbaijani.png"))
{
// Process the image to extract text
var Result = Ocr.Read(Input);
// Extracted text is stored in Result.Text
var AllText = Result.Text;
// Output the extracted text
Console.WriteLine(AllText);
}
}
}' Ensure the IronOCR Azerbaijani language package is installed
' PM> Install-Package IronOCR.Languages.Azerbaijani
Imports IronOcr
Friend Class Program
Shared Sub Main()
' Create a new instance of IronTesseract engine
Dim Ocr = New IronTesseract()
' Specify the language to be Azerbaijani
Ocr.Language = OcrLanguage.Azerbaijani
' Provide the path to the image file containing Azerbaijani text
Using Input = New OcrInput("images\Azerbaijani.png")
' Process the image to extract text
Dim Result = Ocr.Read(Input)
' Extracted text is stored in Result.Text
Dim AllText = Result.Text
' Output the extracted text
Console.WriteLine(AllText)
End Using
End Sub
End Classこの例では、IronTesseract オブジェクトを初期化し、その言語をアゼルバイジャン語に設定します。 OcrInputインスタンスは、指定されたファイル パスから画像を読み取るために使用されます。 Ocr.Readメソッドは画像を処理してテキストを抽出します。このテキストは、 Result.Textプロパティを介してアクセスできます。 これにより、簡単に出力したり、さらに処理したりできるようになります。





