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.Slovene の内容

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

  • スロベニア語
  • スロベニア語ベスト
  • スロベニアファースト

ダウンロード

スロベニア語言語パック[スロベニア語]

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

インストール

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

Install-Package IronOCR.Languages.Slovene

Code Example

この C# コード例は、画像または PDF ドキュメントからスロベニア語のテキストを読み取る方法を示しています。

// Install the package before using it.
// PM> Install-Package IronOcr.Languages.Slovene

using IronOcr;

class Program
{
    static void Main()
    {
        // Create a new instance of IronTesseract for OCR operations.
        var Ocr = new IronTesseract();

        // Set the OCR language to Slovene.
        Ocr.Language = OcrLanguage.Slovene;

        // Perform OCR inside a using block to ensure resources are released properly.
        using (var Input = new OcrInput(@"images\Slovene.png"))
        {
            // Read the text from the input image or PDF.
            var Result = Ocr.Read(Input);

            // Get all the recognized text as a string.
            var AllText = Result.Text;

            // Output the recognized text to the console.
            System.Console.WriteLine(AllText);
        }
    }
}
// Install the package before using it.
// PM> Install-Package IronOcr.Languages.Slovene

using IronOcr;

class Program
{
    static void Main()
    {
        // Create a new instance of IronTesseract for OCR operations.
        var Ocr = new IronTesseract();

        // Set the OCR language to Slovene.
        Ocr.Language = OcrLanguage.Slovene;

        // Perform OCR inside a using block to ensure resources are released properly.
        using (var Input = new OcrInput(@"images\Slovene.png"))
        {
            // Read the text from the input image or PDF.
            var Result = Ocr.Read(Input);

            // Get all the recognized text as a string.
            var AllText = Result.Text;

            // Output the recognized text to the console.
            System.Console.WriteLine(AllText);
        }
    }
}
' Install the package before using it.
' PM> Install-Package IronOcr.Languages.Slovene

Imports IronOcr

Friend Class Program
	Shared Sub Main()
		' Create a new instance of IronTesseract for OCR operations.
		Dim Ocr = New IronTesseract()

		' Set the OCR language to Slovene.
		Ocr.Language = OcrLanguage.Slovene

		' Perform OCR inside a using block to ensure resources are released properly.
		Using Input = New OcrInput("images\Slovene.png")
			' Read the text from the input image or PDF.
			Dim Result = Ocr.Read(Input)

			' Get all the recognized text as a string.
			Dim AllText = Result.Text

			' Output the recognized text to the console.
			System.Console.WriteLine(AllText)
		End Using
	End Sub
End Class
$vbLabelText   $csharpLabel