C# および .NET でのエストニア語 OCR
Curtis Chau
更新日: 2026年8月2日
このドキュメントの他のバージョン:
IronOCR は、.NET 開発者がエストニア語を含む 126 の言語で画像や PDF ドキュメントからテキストを読み取ることができる C# ソフトウェア コンポーネントです。 これはTesseractの高度なフォークであり、.NET開発者専用に構築され、速度と精度の両方で他のTesseractエンジンを定期的に上回ります。
IronOcr.Languages.Estonian の内容
このパッケージには、.NET 用の次の OCR 言語が含まれています。
- Estonian
- EstonianBest
- EstonianFast
ダウンロード
エストニア語言語パック[エストニア語]
インストール
最初に、エストニア語OCR パッケージを .NET プロジェクトにインストールする必要があります。
コード例
この C# コード例は、画像または PDF ドキュメントからエストニア語のテキストを読み取ります。
// Import the IronOcr namespace
using IronOcr;
// Create a new instance of the IronTesseract class
var Ocr = new IronTesseract();
// Set the OCR language to Estonian
Ocr.Language = OcrLanguage.Estonian;
// Load the image or PDF from which text needs to be extracted
using (var Input = new OcrInput(@"images\Estonian.png"))
{
// Perform OCR to read text from the specified input
var Result = Ocr.Read(Input);
// Extract all the recognized text from the OCR result
var AllText = Result.Text;
}' Import the IronOcr namespace
Imports IronOcr
' Create a new instance of the IronTesseract class
Dim Ocr As New IronTesseract()
' Set the OCR language to Estonian
Ocr.Language = OcrLanguage.Estonian
' Load the image or PDF from which text needs to be extracted
Using Input As New OcrInput("images\Estonian.png")
' Perform OCR to read text from the specified input
Dim Result = Ocr.Read(Input)
' Extract all the recognized text from the OCR result
Dim AllText As String = Result.Text
End Using' Import the IronOcr namespace
Imports IronOcr
' Create a new instance of the IronTesseract class
Dim Ocr As New IronTesseract()
' Set the OCR language to Estonian
Ocr.Language = OcrLanguage.Estonian
' Load the image or PDF from which text needs to be extracted
Using Input As New OcrInput("images\Estonian.png")
' Perform OCR to read text from the specified input
Dim Result = Ocr.Read(Input)
' Extract all the recognized text from the OCR result
Dim AllText As String = Result.Text
End Usingコードの説明:
- IronTesseract: これは、IronOCRによって提供されるOCR処理を行うための主要なクラスです。
- Ocr.Language: このプロパティを設定することによって、OCR中に使用される言語を定義します。 ここではエストニア語に設定されています。
- OcrInput: これを使用して、読み取りたい画像またはPDF文書を指定します。 入力としてファイルパスを受け取ります。
Ocr.Read(Input): このメソッドは、指定された入力を処理し、それに対してOCRを実行します。- Result.Text: このプロパティには、画像やPDF文書から正常に認識され抽出されたすべてのテキストが含まれます。
テクニカルライター
Curtis Chauは、カールトン大学でコンピュータサイエンスの学士号を取得し、Node.js、TypeScript、JavaScript、およびReactに精通したフロントエンド開発を専門としています。直感的で美しいユーザーインターフェースを作成することに情熱を持ち、Curtisは現代のフレームワークを用いた開発や、構造の良い視覚的に魅力的なマニュアルの作成を楽しんでいます。