C# と .NET でのフィンランド語 OCR
Other versions of this document:
IronOCR は、.NET コーダーがフィンランド語を含む 126 の言語で画像や PDF ドキュメントからテキストを読み取ることを可能にする C# ソフトウェア コンポーネントです。
これはTesseractの高度なフォークであり、.NET開発者専用に構築され、速度と精度の両方で他のTesseractエンジンを定期的に上回ります。
IronOcr.Languages.Finnish の内容
このパッケージには、.NET 用の 46 の OCR 言語が含まれています。
- フィンランド語
- フィンランドベスト
- フィンランドファースト
ダウンロード
フィンランド語言語パック[フィンランド語]
インストール
最初に、フィンランド語のOCR パッケージを .NET プロジェクトにインストールする必要があります。
Install-Package IronOCR.Languages.Finnish
Code Example
この C# コード例は、画像または PDF ドキュメントからフィンランド語のテキストを読み取ります。
// Ensure you have installed the IronOcr.Languages.Finnish package before using this code.
// You can install it via NuGet package manager.
using IronOcr;
var Ocr = new IronTesseract(); // Create a new instance of the IronTesseract OCR engine
Ocr.Language = OcrLanguage.Finnish; // Set the language of the OCR engine to Finnish
// Using a using statement to ensure the OcrInput gets disposed of correctly
using (var Input = new OcrInput(@"images\Finnish.png")) // Path to the image/PDF containing Finnish text
{
var Result = Ocr.Read(Input); // Perform OCR on the input file
var AllText = Result.Text; // Extract the recognized text as a string
// Output or process the extracted text as required
Console.WriteLine(AllText); // Example of outputting the text to the console
}// Ensure you have installed the IronOcr.Languages.Finnish package before using this code.
// You can install it via NuGet package manager.
using IronOcr;
var Ocr = new IronTesseract(); // Create a new instance of the IronTesseract OCR engine
Ocr.Language = OcrLanguage.Finnish; // Set the language of the OCR engine to Finnish
// Using a using statement to ensure the OcrInput gets disposed of correctly
using (var Input = new OcrInput(@"images\Finnish.png")) // Path to the image/PDF containing Finnish text
{
var Result = Ocr.Read(Input); // Perform OCR on the input file
var AllText = Result.Text; // Extract the recognized text as a string
// Output or process the extracted text as required
Console.WriteLine(AllText); // Example of outputting the text to the console
}' Ensure you have installed the IronOcr.Languages.Finnish package before using this code.
' You can install it via NuGet package manager.
Imports IronOcr
Private Ocr = New IronTesseract() ' Create a new instance of the IronTesseract OCR engine
Ocr.Language = OcrLanguage.Finnish ' Set the language of the OCR engine to Finnish
' Using a using statement to ensure the OcrInput gets disposed of correctly
Using Input = New OcrInput("images\Finnish.png") ' Path to the image/PDF containing Finnish text
Dim Result = Ocr.Read(Input) ' Perform OCR on the input file
Dim AllText = Result.Text ' Extract the recognized text as a string
' Output or process the extracted text as required
Console.WriteLine(AllText) ' Example of outputting the text to the console
End Using




