Azerbaijani OCR in C# and .NET
このドキュメントの他のバージョン:
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);
}
}
}
Imports IronOcr
Module Program
Sub Main()
' Create a new instance of IronTesseract engine
Dim Ocr As New IronTesseract()
' Specify the language to be Azerbaijani
Ocr.Language = OcrLanguage.Azerbaijani
' Provide the path to the image file containing Azerbaijani text
Using Input As 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 Module
この例では、IronTesseract オブジェクトを初期化し、その言語をアゼルバイジャン語に設定します。 OcrInput インスタンスは、指定されたファイル パスからイメージを読み取るために使用されます。 Ocr.Read メソッドは、画像を処理してテキストを抽出します。このテキストは、Result.Text プロパティを介してアクセスできます。 これにより、簡単に出力したり、さらに処理したりできるようになります。

