C# での Thaana アルファベット OCR

This article was translated from English: Does it need improvement?
Translated
View the article in English

他126の言語

IronOCR は、.NET コーダーが Thaana アルファベットを含む 126 の言語で画像や PDF ドキュメントからテキストを読み取ることを可能にする C# ソフトウェア コンポーネントです。

これは、特に.NET開発者向けに構築されたTesseractの高度なフォークであり、速度と精度の両方で他のTesseractエンジンを定期的に上回ります。

IronOcr.Languages.Thana の内容

このパッケージには、.NET 用の 67 個の OCR 言語が含まれています。

  • ターナアルファベット
  • ThaanaAlphabetBest
  • ThaanaAlphabetFast

ダウンロード

Thaana アルファベット言語パック[Thaana]

  • Zip形式でダウンロード
  • NuGetでインストール

インストール

最初に、 Thaana Alphabet OCR パッケージを .NET プロジェクトにインストールする必要があります。

Install-Package IronOCR.Languages.Thaana

Code Example

この C# コード例は、画像または PDF ドキュメントから Thaana Alphabet テキストを読み取ります。

// Import the IronOcr namespace
using IronOcr;

// Create a new IronTesseract OCR object
var Ocr = new IronTesseract();

// Set the language to Thaana for OCR processing
Ocr.Language = OcrLanguage.Thaana;

// Create an OcrInput object with the path to the image
using (var Input = new OcrInput(@"images\Thaana.png"))
{
    // Perform OCR on the input image to extract text
    var Result = Ocr.Read(Input);

    // Store the recognized text from the image in a variable
    var AllText = Result.Text;

    // Output the recognized text to the console or any other use
    Console.WriteLine(AllText);
}
// Import the IronOcr namespace
using IronOcr;

// Create a new IronTesseract OCR object
var Ocr = new IronTesseract();

// Set the language to Thaana for OCR processing
Ocr.Language = OcrLanguage.Thaana;

// Create an OcrInput object with the path to the image
using (var Input = new OcrInput(@"images\Thaana.png"))
{
    // Perform OCR on the input image to extract text
    var Result = Ocr.Read(Input);

    // Store the recognized text from the image in a variable
    var AllText = Result.Text;

    // Output the recognized text to the console or any other use
    Console.WriteLine(AllText);
}
' Import the IronOcr namespace
Imports IronOcr

' Create a new IronTesseract OCR object
Private Ocr = New IronTesseract()

' Set the language to Thaana for OCR processing
Ocr.Language = OcrLanguage.Thaana

' Create an OcrInput object with the path to the image
Using Input = New OcrInput("images\Thaana.png")
	' Perform OCR on the input image to extract text
	Dim Result = Ocr.Read(Input)

	' Store the recognized text from the image in a variable
	Dim AllText = Result.Text

	' Output the recognized text to the console or any other use
	Console.WriteLine(AllText)
End Using
$vbLabelText   $csharpLabel
  • 上記のコードは、IronOCR を使用して、Thaana スクリプトを含む画像に対して OCR を実行する方法を示しています。
  • OCR オブジェクトを設定し、言語を指定して、指定された画像ファイルからテキストを読み取ります。
  • 抽出されたテキストは、必要に応じてアプリケーションで使用できます。