C# でのキリル文字 OCR
Curtis Chau
更新日: 2026年8月2日
IronOCR は、.NET コーダーがキリル文字を含む 126 の言語で画像や PDF ドキュメントからテキストを読み取ることを可能にする C# ソフトウェア コンポーネントです。
これは、特に.NET開発者向けに構築されたTesseractの高度なフォークであり、速度と精度の両方で多くの場合、他のTesseractエンジンを上回ります。
IronOcr.Languages.Cyrillic の内容
このパッケージには、.NET 用の 73 の OCR 言語が含まれています。
- CyrillicAlphabet
- CyrillicAlphabetBest
- CyrillicAlphabetFast
ダウンロード
キリル文字言語パック[キリル文字]
インストール
最初に、キリル文字OCR パッケージを .NET プロジェクトにインストールする必要があります。
コード例
この C# コード例は、画像または PDF ドキュメントからキリル文字のテキストを読み取ります。
using IronOcr;
public class OcrExample
{
public void ReadCyrillicText()
{
// Initialize a new instance of the IronTesseract OCR engine
var Ocr = new IronTesseract();
// Set the OCR engine to use the Cyrillic language package
Ocr.Language = OcrLanguage.Cyrillic;
// Create a new OCR input from an image file
using (var Input = new OcrInput(@"images\Cyrillic.png"))
{
// Read the image using the OCR engine
var Result = Ocr.Read(Input);
// Retrieve Recognized Text
var AllText = Result.Text;
// Output the recognized text to the console
Console.WriteLine(AllText);
}
}
}Imports IronOcr
Public Class OcrExample
Public Sub ReadCyrillicText()
' Initialize a new instance of the IronTesseract OCR engine
Dim Ocr = New IronTesseract()
' Set the OCR engine to use the Cyrillic language package
Ocr.Language = OcrLanguage.Cyrillic
' Create a new OCR input from an image file
Using Input = New OcrInput("images\Cyrillic.png")
' Read the image using the OCR engine
Dim Result = Ocr.Read(Input)
' Retrieve Recognized Text
Dim AllText = Result.Text
' Output the recognized text to the console
Console.WriteLine(AllText)
End Using
End Sub
End ClassImports IronOcr
Public Class OcrExample
Public Sub ReadCyrillicText()
' Initialize a new instance of the IronTesseract OCR engine
Dim Ocr = New IronTesseract()
' Set the OCR engine to use the Cyrillic language package
Ocr.Language = OcrLanguage.Cyrillic
' Create a new OCR input from an image file
Using Input = New OcrInput("images\Cyrillic.png")
' Read the image using the OCR engine
Dim Result = Ocr.Read(Input)
' Retrieve Recognized Text
Dim AllText = Result.Text
' Output the recognized text to the console
Console.WriteLine(AllText)
End Using
End Sub
End ClassIronTesseract: OCRタスクを設定し実行するためのOCRエンジンクラスです。OcrInput: OCRを実行したい入力画像または文書を表すクラスです。OcrLanguage.Cyrillic: 認識のためにOCRエンジンがキリル文字の言語パッケージを使用することを指定します。Result.Text: OCR結果オブジェクトから認識されたテキストにアクセスします。
この例では、キリル文字のテキストを含む画像を処理してテキストを抽出する簡単な使用例を示します。
テクニカルライター
Curtis Chauは、カールトン大学でコンピュータサイエンスの学士号を取得し、Node.js、TypeScript、JavaScript、およびReactに精通したフロントエンド開発を専門としています。直感的で美しいユーザーインターフェースを作成することに情熱を持ち、Curtisは現代のフレームワークを用いた開発や、構造の良い視覚的に魅力的なマニュアルの作成を楽しんでいます。