C# と .NET による中期フランス語 OCR

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

他126の言語

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

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

IronOcr.Languages.MiddleFrenchの内容

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

  • 中期フランス語
  • ミドルフレンチベスト
  • ミドルフレンチファースト

ダウンロード

中期フランス語言語パック

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

インストール

最初に行う必要があるのは、中期フランス語OCR パッケージを .NET プロジェクトにインストールすることです。

Install-Package IronOcr.Languages.MiddleFrench

Code Example

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

// Import the IronOcr namespace
using IronOcr;

var Ocr = new IronTesseract(); // Initialize the OCR engine
Ocr.Language = OcrLanguage.MiddleFrench; // Set the language to MiddleFrench

// Create an OcrInput from the specified image file
using (var Input = new OcrInput(@"images\MiddleFrench.png")) 
{
    var Result = Ocr.Read(Input); // Perform OCR on the input image
    var AllText = Result.Text; // Retrieve the recognized text
    // The variable 'AllText' now contains the text extracted from the image
}
// Import the IronOcr namespace
using IronOcr;

var Ocr = new IronTesseract(); // Initialize the OCR engine
Ocr.Language = OcrLanguage.MiddleFrench; // Set the language to MiddleFrench

// Create an OcrInput from the specified image file
using (var Input = new OcrInput(@"images\MiddleFrench.png")) 
{
    var Result = Ocr.Read(Input); // Perform OCR on the input image
    var AllText = Result.Text; // Retrieve the recognized text
    // The variable 'AllText' now contains the text extracted from the image
}
' Import the IronOcr namespace
Imports IronOcr

Private Ocr = New IronTesseract() ' Initialize the OCR engine
Ocr.Language = OcrLanguage.MiddleFrench ' Set the language to MiddleFrench

' Create an OcrInput from the specified image file
Using Input = New OcrInput("images\MiddleFrench.png")
	Dim Result = Ocr.Read(Input) ' Perform OCR on the input image
	Dim AllText = Result.Text ' Retrieve the recognized text
	' The variable 'AllText' now contains the text extracted from the image
End Using
$vbLabelText   $csharpLabel