C# と .NET でのスウェーデン語 OCR

This article was translated from English: Does it need improvement?
Translated
View the article in English
Other versions of this document:

*スウェーデン語

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

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

IronOcr.Languages.Swedish の内容

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

  • スウェーデン語
  • スウェーデンベスト
  • スウェーデンファースト

ダウンロード

スウェーデン語言語パック[スウェーデン語]

  • Zip としてダウンロード
  • NuGetでインストール

インストール

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

Install-Package IronOCR.Languages.Swedish

Code Example

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

// Import the IronOcr namespace
using IronOcr;

// Create a new instance of the IronTesseract OCR engine
var Ocr = new IronTesseract();

// Set the language to Swedish
Ocr.Language = OcrLanguage.Swedish;

// Load the image file or PDF from which the text will be extracted
using (var Input = new OcrInput(@"images\Swedish.png"))
{
    // Read the text from the input using the OCR engine
    var Result = Ocr.Read(Input);

    // Get all the extracted text as a string
    var AllText = Result.Text;
}
// Import the IronOcr namespace
using IronOcr;

// Create a new instance of the IronTesseract OCR engine
var Ocr = new IronTesseract();

// Set the language to Swedish
Ocr.Language = OcrLanguage.Swedish;

// Load the image file or PDF from which the text will be extracted
using (var Input = new OcrInput(@"images\Swedish.png"))
{
    // Read the text from the input using the OCR engine
    var Result = Ocr.Read(Input);

    // Get all the extracted text as a string
    var AllText = Result.Text;
}
' Import the IronOcr namespace
Imports IronOcr

' Create a new instance of the IronTesseract OCR engine
Private Ocr = New IronTesseract()

' Set the language to Swedish
Ocr.Language = OcrLanguage.Swedish

' Load the image file or PDF from which the text will be extracted
Using Input = New OcrInput("images\Swedish.png")
	' Read the text from the input using the OCR engine
	Dim Result = Ocr.Read(Input)

	' Get all the extracted text as a string
	Dim AllText = Result.Text
End Using
$vbLabelText   $csharpLabel