Occitan OCR in C# and .NET

This article was translated from English: Does it need improvement?
Translated
View the article in English

126 Daha Fazla Dil

IronOCR, .NET kodlayıcılarının 126 dilde, Oksitanca da dahil olmak üzere, görüntülerden ve PDF belgelerinden metin okumalarını sağlayan 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.Occitan İçeriği

Bu paket, .NET için 46 OCR dili içerir:

  • Occitan
  • OccitanBest
  • OccitanFast

İndirme

Oksitanca Dil Paketi

Kurulum

İlk yapmamız gereken, .NET projenize Oksitanca OCR paketini yüklemektir.

Install-Package IronOcr.Languages.Occitan

Kod Örneği

Bu C# kod örneği, bir görüntü veya PDF belgesinden Oksitanca metnini okur.

// Importing the IronOCR namespace
using IronOcr;

class Program
{
    static void Main()
    {
        // Create a new instance of the OCR engine for Occitan language
        var Ocr = new IronTesseract();
        Ocr.Language = OcrLanguage.Occitan;

        // Use a using block for proper disposal of resources
        using (var Input = new OcrInput(@"images\Occitan.png"))
        {
            // Perform OCR on the input image
            var Result = Ocr.Read(Input);

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

            // Output the recognized text to the console
            Console.WriteLine(AllText);
        }
    }
}
// Importing the IronOCR namespace
using IronOcr;

class Program
{
    static void Main()
    {
        // Create a new instance of the OCR engine for Occitan language
        var Ocr = new IronTesseract();
        Ocr.Language = OcrLanguage.Occitan;

        // Use a using block for proper disposal of resources
        using (var Input = new OcrInput(@"images\Occitan.png"))
        {
            // Perform OCR on the input image
            var Result = Ocr.Read(Input);

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

            // Output the recognized text to the console
            Console.WriteLine(AllText);
        }
    }
}
' Importing the IronOCR namespace
Imports IronOcr

Friend Class Program
	Shared Sub Main()
		' Create a new instance of the OCR engine for Occitan language
		Dim Ocr = New IronTesseract()
		Ocr.Language = OcrLanguage.Occitan

		' Use a using block for proper disposal of resources
		Using Input = New OcrInput("images\Occitan.png")
			' Perform OCR on the input image
			Dim Result = Ocr.Read(Input)

			' Retrieve the recognized text
			Dim AllText = Result.Text

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

Bu örnek, IronOCR kutuphanesini Oksitanca metin içeren bir görüntü dosyasından metin okumak için nasıl yapılandıracağınızı gösterir. OCR dilini Oksitanca olarak ayarlar ve görüntüyü işler, tanınan metni çıktı olarak verir.