C# と .NET での西フリジア語 OCR
IronOCR は、.NET コーダーが西フリジア語を含む 126 の言語で画像や PDF ドキュメントからテキストを読み取ることを可能にする C# ソフトウェア コンポーネントです。
これはTesseractの高度なフォークであり、.NET開発者専用に構築され、速度と精度の両方で他のTesseractエンジンを定期的に上回ります。
IronOcr.Languages.WesternFrisian の内容
このパッケージには、.NET 用の 67 個の OCR 言語が含まれています。
- 西フリジア語
- 西フリジア語ベスト
- 西フリジア語ファースト
ダウンロード
西フリジア語言語パック [フリジア語]
インストール
最初に、西フリジア語OCR パッケージを .NET プロジェクトにインストールする必要があります。
Install-Package IronOCR.Languages.WesternFrisian
Code Example
この C# コード例は、画像または PDF ドキュメントから西フリジア語のテキストを読み取ります。
// Import the IronOcr library
using IronOcr;
class WesternFrisianOcrExample
{
static void Main()
{
// Create a new instance of IronTesseract, which is the OCR engine
var Ocr = new IronTesseract();
// Set the language to Western Frisian
Ocr.Language = OcrLanguage.WesternFrisian;
// Perform OCR on a given image
using (var Input = new OcrInput(@"images\WesternFrisian.png"))
{
// Read the input image and store the result
var Result = Ocr.Read(Input);
// Extract the text from the result
string AllText = Result.Text;
// Output the recognized text to the console
System.Console.WriteLine(AllText);
}
}
}// Import the IronOcr library
using IronOcr;
class WesternFrisianOcrExample
{
static void Main()
{
// Create a new instance of IronTesseract, which is the OCR engine
var Ocr = new IronTesseract();
// Set the language to Western Frisian
Ocr.Language = OcrLanguage.WesternFrisian;
// Perform OCR on a given image
using (var Input = new OcrInput(@"images\WesternFrisian.png"))
{
// Read the input image and store the result
var Result = Ocr.Read(Input);
// Extract the text from the result
string AllText = Result.Text;
// Output the recognized text to the console
System.Console.WriteLine(AllText);
}
}
}' Import the IronOcr library
Imports IronOcr
Friend Class WesternFrisianOcrExample
Shared Sub Main()
' Create a new instance of IronTesseract, which is the OCR engine
Dim Ocr = New IronTesseract()
' Set the language to Western Frisian
Ocr.Language = OcrLanguage.WesternFrisian
' Perform OCR on a given image
Using Input = New OcrInput("images\WesternFrisian.png")
' Read the input image and store the result
Dim Result = Ocr.Read(Input)
' Extract the text from the result
Dim AllText As String = Result.Text
' Output the recognized text to the console
System.Console.WriteLine(AllText)
End Using
End Sub
End Classこの例では、次の操作を行います。
- OCR エンジン
IronTesseract初期化します。 OcrLanguage.WesternFrisian言語オプションを使用して、OCR プロセスを西フリジア語のテキストを認識するように設定します。- パス
images\WesternFrisian.pngにある画像ファイルを読み取ります。 - 認識したテキストを
AllTextに保存し、コンソールに出力します。





