Cebuano OCR in C#
IronOCRは、.NETプログラマーが画像やPDF文書からセブアノ語を含む126言語のテキストを読み取ることを可能にするC#ソフトウェアコンポーネントです。Tesseractの高度なフォークであり、.NET開発者専用に開発されており、速度と精度の両方で他のTesseractエンジンを常に上回っています。
IronOcr.Languages.Cebuano の内容
このパッケージには、.NET 用の 46 の OCR 言語が含まれています。
- セブアノ語
- セブアノベスト
- セブアノファスト
ダウンロード
セブアノ言語パック[ビサヤ語]
インストール
最初に、 Cebuano OCR パッケージを .NET プロジェクトにインストールする必要があります。
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
Imports IronOcr
Module Program
Sub Main()
' Instantiate an IronTesseract object
Dim Ocr As 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 As 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 Module上記のコード スニペットは、C# と .NET を使用して IronOCR で画像からセブアノ語のテキストを読み取る方法を示しています。 まず、OCR エンジンを設定し、セブアノ語を指定してから、画像ファイルを処理して、抽出したテキストを出力します。 プロジェクト環境にイメージ パスが正しく指定されていることを確認してください。

Curtis Chauは、カールトン大学でコンピュータサイエンスの学士号を取得し、Node.js、TypeScript、JavaScript、およびReactに精通したフロントエンド開発を専門としています。直感的で美しいユーザーインターフェースを作成することに情熱を持ち、Curtisは現代のフレームワークを用いた開発や、構造の良い視覚的に魅力的なマニュアルの作成を楽しんでいます。