C# と .NET でのフェロー語 OCR
IronOCR は、.NET コーダーがフェロー語を含む 126 の言語で画像や PDF ドキュメントからテキストを読み取ることを可能にする C# ソフトウェア コンポーネントです。
これは、特に.NET開発者向けに構築されたTesseractの高度なフォークであり、速度と精度の両方で他のTesseractエンジンを定期的に上回ります。
IronOcr.Languages.Faroese の内容
このパッケージには、.NET 用の 46 の OCR 言語が含まれています。
- フェロー語
- フェロー語ベスト
- フェロー諸島高速
ダウンロード
フェロー語言語パック[フェロー語]
インストール
まず最初に、フェロー語OCR パッケージを .NET プロジェクトにインストールします。
Install-Package IronOCR.Languages.Faroese
Code Example
この C# コード例は、画像または PDF ドキュメントからフェロー語のテキストを読み取ります。
// Import the IronOcr namespace
using IronOcr;
class Program
{
static void Main()
{
// Create a new instance of IronTesseract
var Ocr = new IronTesseract();
// Specify the language to use for OCR
// In this case, we're using Faroese
Ocr.Language = OcrLanguage.Faroese;
// Use a using statement for automatic resource management
using (var Input = new OcrInput(@"images\Faroese.png"))
{
// Perform OCR on the input image
var Result = Ocr.Read(Input);
// Extract the recognized text
var AllText = Result.Text;
// Print the extracted text to console
Console.WriteLine(AllText);
}
}
}// Import the IronOcr namespace
using IronOcr;
class Program
{
static void Main()
{
// Create a new instance of IronTesseract
var Ocr = new IronTesseract();
// Specify the language to use for OCR
// In this case, we're using Faroese
Ocr.Language = OcrLanguage.Faroese;
// Use a using statement for automatic resource management
using (var Input = new OcrInput(@"images\Faroese.png"))
{
// Perform OCR on the input image
var Result = Ocr.Read(Input);
// Extract the recognized text
var AllText = Result.Text;
// Print the extracted text to console
Console.WriteLine(AllText);
}
}
}' Import the IronOcr namespace
Imports IronOcr
Friend Class Program
Shared Sub Main()
' Create a new instance of IronTesseract
Dim Ocr = New IronTesseract()
' Specify the language to use for OCR
' In this case, we're using Faroese
Ocr.Language = OcrLanguage.Faroese
' Use a using statement for automatic resource management
Using Input = New OcrInput("images\Faroese.png")
' Perform OCR on the input image
Dim Result = Ocr.Read(Input)
' Extract the recognized text
Dim AllText = Result.Text
' Print the extracted text to console
Console.WriteLine(AllText)
End Using
End Sub
End ClassIronTesseract: このオブジェクトは、コア OCR エンジンとして機能します。Ocr.Language: OCR をフェロー語に設定します。 フェロー語言語パックがインストールされていることを確認してください。OcrInput: OCR の入力ファイル (画像または PDF) を提供します。Ocr.Read: 入力を処理し、OCR 結果を生成します。Result.Text: OCR 操作からテキスト情報を抽出します。





