C# でのセブアノ語 OCR
IronOCRは、.NETプログラマーが画像やPDF文書からセブアノ語を含む126言語のテキストを読み取ることを可能にするC#ソフトウェアコンポーネントです。Tesseractの高度なフォークであり、.NET開発者専用に開発されており、速度と精度の両方で他のTesseractエンジンを常に上回っています。
IronOcr.Languages.Cebuano の内容
このパッケージには、.NET 用の 46 の OCR 言語が含まれています。
- セブアノ語
- セブアノベスト
- セブアノファスト
ダウンロード
セブアノ言語パック[ビサヤ語]
インストール
最初に、 Cebuano OCR パッケージを .NET プロジェクトにインストールする必要があります。
Install-Package IronOCR.Languages.Cebuano
Code Example
この C# コード例は、画像または PDF ドキュメントからセブアノ語のテキストを読み取ります。
// Install the IronOCR Cebuano language package via NuGet package manager
// PM> Install-Package IronOcr.Languages.Cebuano
using IronOcr;
class Program
{
static void Main()
{
// Instantiate an IronTesseract object
var Ocr = new IronTesseract();
// Set the OCR language to Cebuano
Ocr.Language = OcrLanguage.Cebuano;
// Define the input source containing the image or PDF with Cebuano text
using (var Input = new OcrInput(@"images\Cebuano.png"))
{
// Perform OCR to read the text from the input source
var Result = Ocr.Read(Input);
// Extract and display the recognized text
var AllText = Result.Text;
Console.WriteLine(AllText);
}
}
}// Install the IronOCR Cebuano language package via NuGet package manager
// PM> Install-Package IronOcr.Languages.Cebuano
using IronOcr;
class Program
{
static void Main()
{
// Instantiate an IronTesseract object
var Ocr = new IronTesseract();
// Set the OCR language to Cebuano
Ocr.Language = OcrLanguage.Cebuano;
// Define the input source containing the image or PDF with Cebuano text
using (var Input = new OcrInput(@"images\Cebuano.png"))
{
// Perform OCR to read the text from the input source
var Result = Ocr.Read(Input);
// Extract and display the recognized text
var AllText = Result.Text;
Console.WriteLine(AllText);
}
}
}' Install the IronOCR Cebuano language package via NuGet package manager
' PM> Install-Package IronOcr.Languages.Cebuano
Imports IronOcr
Friend Class Program
Shared Sub Main()
' Instantiate an IronTesseract object
Dim Ocr = New IronTesseract()
' Set the OCR language to Cebuano
Ocr.Language = OcrLanguage.Cebuano
' Define the input source containing the image or PDF with Cebuano text
Using Input = New OcrInput("images\Cebuano.png")
' Perform OCR to read the text from the input source
Dim Result = Ocr.Read(Input)
' Extract and display the recognized text
Dim AllText = Result.Text
Console.WriteLine(AllText)
End Using
End Sub
End Class上記のコード スニペットは、C# と .NET を使用して IronOCR で画像からセブアノ語のテキストを読み取る方法を示しています。 まず、OCR エンジンを設定し、セブアノ語を指定してから、画像ファイルを処理して、抽出したテキストを出力します。 プロジェクト環境にイメージ パスが正しく指定されていることを確認してください。





