C# と .NET でのバスク語 OCR
Other versions of this document:
*バスク語
IronOCR は、.NET コーダーがバスク語を含む 126 の言語で画像や PDF ドキュメントからテキストを読み取ることを可能にする C# ソフトウェア コンポーネントです。
これは、.NET 開発者専用に構築された Tesseract の高度なフォークであり、速度と精度の両方において他の Tesseract エンジンを常に上回っています。
IronOcr.Languages.Basque の内容
このパッケージには、.NET 用の 43 の OCR 言語が含まれています。
- バスク語
- バスクベスト
- バスクファスト
ダウンロード
バスク語言語パック[バスク語]
インストール
最初に、バスク語OCR パッケージを .NET プロジェクトにインストールする必要があります。
Install-Package IronOCR.Languages.Basque
Code Example
この C# コード例は、画像または PDF ドキュメントからバスク語のテキストを読み取ります。
// Import the IronOcr namespace
using IronOcr;
class BasqueOCRExample
{
static void Main()
{
// Create a new instance of IronTesseract
var Ocr = new IronTesseract();
// Set the language to Basque
Ocr.Language = OcrLanguage.Basque;
// Read the text from a Basque image or PDF
using (var Input = new OcrInput(@"images\Basque.png"))
{
// Perform OCR to get the result
var Result = Ocr.Read(Input);
// Extract all text from the OCR result
var AllText = Result.Text;
// Output the extracted text
System.Console.WriteLine(AllText);
}
}
}// Import the IronOcr namespace
using IronOcr;
class BasqueOCRExample
{
static void Main()
{
// Create a new instance of IronTesseract
var Ocr = new IronTesseract();
// Set the language to Basque
Ocr.Language = OcrLanguage.Basque;
// Read the text from a Basque image or PDF
using (var Input = new OcrInput(@"images\Basque.png"))
{
// Perform OCR to get the result
var Result = Ocr.Read(Input);
// Extract all text from the OCR result
var AllText = Result.Text;
// Output the extracted text
System.Console.WriteLine(AllText);
}
}
}このコードは、バスク語専用の IronOCR を使用して OCR エンジンを設定します。 画像 (または PDF へのパス) を読み込んで OCR を実行し、すべてのテキスト コンテンツを抽出して、コンソールに出力します。





