C# と .NET でのフランス語 OCR
Other versions of this document:
IronOCR は、.NET コーダーがフランス語を含む 126 の言語で画像や PDF ドキュメントからテキストを読み取ることを可能にする C# ソフトウェア コンポーネントです。
これはTesseractの高度なフォークであり、.NET開発者専用に構築され、速度と精度の両方で他のTesseractエンジンを定期的に上回ります。
IronOcr.Languages.French の内容
このパッケージには、.NET 用の 43 の OCR 言語が含まれています。
- フランス語
- フレンチベスト
- フレンチファースト
ダウンロード
フランス語言語パック[フランス語]
インストール
最初に、フランス語のOCR パッケージを .NET プロジェクトにインストールする必要があります。
Install-Package IronOCR.Languages.French
Code Example
この C# コード例は、画像または PDF ドキュメントからフランス語のテキストを読み取ります。
// Import the IronOcr namespace
using IronOcr;
// Create a new instance of IronTesseract, which is the OCR engine
var Ocr = new IronTesseract();
// Specify the language to French for OCR processing
Ocr.Language = OcrLanguage.French;
// Load the input image or PDF document
using (var Input = new OcrInput(@"images\French.png"))
{
// Perform OCR and retrieve the result
var Result = Ocr.Read(Input);
// Access the text from the OCR result
var AllText = Result.Text;
// Output or further process `AllText` as needed
}// Import the IronOcr namespace
using IronOcr;
// Create a new instance of IronTesseract, which is the OCR engine
var Ocr = new IronTesseract();
// Specify the language to French for OCR processing
Ocr.Language = OcrLanguage.French;
// Load the input image or PDF document
using (var Input = new OcrInput(@"images\French.png"))
{
// Perform OCR and retrieve the result
var Result = Ocr.Read(Input);
// Access the text from the OCR result
var AllText = Result.Text;
// Output or further process `AllText` as needed
}' Import the IronOcr namespace
Imports IronOcr
' Create a new instance of IronTesseract, which is the OCR engine
Private Ocr = New IronTesseract()
' Specify the language to French for OCR processing
Ocr.Language = OcrLanguage.French
' Load the input image or PDF document
Using Input = New OcrInput("images\French.png")
' Perform OCR and retrieve the result
Dim Result = Ocr.Read(Input)
' Access the text from the OCR result
Dim AllText = Result.Text
' Output or further process `AllText` as needed
End Using




