Belarusian OCR in C# and .NET

This article was translated from English: Does it need improvement?
Translated
View the article in English
Bu belgenin diğer versiyonları:

IronOCR, 126 dilde, Beyaz Rusça da dahil olmak üzere, .NET kodlayıcılarının görüntülerden ve PDF belgelerinden metin okumasına olanak tanıyan bir C# yazılım bileşenidir.

Tesseract'ın ileri düzey bir çatallamasıdır, yalnızca .NET geliştiricileri için oluşturulmuş olup hız ve doğruluk açısından diğer Tesseract motorlarını düzenli olarak geride bırakmaktadır.

IronOcr.Languages.Belarusian içeriği

Bu paket, .NET için 55 OCR dilini içerir:

  • Beyaz Rusça
  • Beyaz Rusça En İyi
  • Beyaz Rusça Hızlı

İndirme

Beyaz Rusça Dil Paketi [беларуская мова]

Kurulum

İlk yapmamız gereken, .NET projenize Beyaz Rusça OCR paketimizi yüklemektir.

Install-Package IronOcr.Languages.Belarusian

Kod Örneği

Bu C# kod örneği, bir görüntüden veya PDF belgesinden Beyaz Rusça metni okur.

// Import the IronOcr namespace to access OCR functionalities
using IronOcr;

class BelarusianOcrExample
{
    static void Main()
    {
        // Initialize the IronTesseract OCR engine
        var Ocr = new IronTesseract();

        // Set the language to Belarusian for optimal recognition results
        Ocr.Language = OcrLanguage.Belarusian;

        // Define the input source: Image or PDF from a path
        using (var Input = new OcrInput(@"images\Belarusian.png"))
        {
            // Perform OCR to read the text
            var Result = Ocr.Read(Input);

            // Extract the recognized text
            var AllText = Result.Text;

            // Output the recognized text to the console
            System.Console.WriteLine(AllText);
        }
    }
}
// Import the IronOcr namespace to access OCR functionalities
using IronOcr;

class BelarusianOcrExample
{
    static void Main()
    {
        // Initialize the IronTesseract OCR engine
        var Ocr = new IronTesseract();

        // Set the language to Belarusian for optimal recognition results
        Ocr.Language = OcrLanguage.Belarusian;

        // Define the input source: Image or PDF from a path
        using (var Input = new OcrInput(@"images\Belarusian.png"))
        {
            // Perform OCR to read the text
            var Result = Ocr.Read(Input);

            // Extract the recognized text
            var AllText = Result.Text;

            // Output the recognized text to the console
            System.Console.WriteLine(AllText);
        }
    }
}
' Import the IronOcr namespace to access OCR functionalities
Imports IronOcr

Friend Class BelarusianOcrExample
	Shared Sub Main()
		' Initialize the IronTesseract OCR engine
		Dim Ocr = New IronTesseract()

		' Set the language to Belarusian for optimal recognition results
		Ocr.Language = OcrLanguage.Belarusian

		' Define the input source: Image or PDF from a path
		Using Input = New OcrInput("images\Belarusian.png")
			' Perform OCR to read the text
			Dim Result = Ocr.Read(Input)

			' Extract the recognized text
			Dim AllText = Result.Text

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