Basque 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, C# yazılım bileşeni olarak, .NET kodlayıcılarının Baskça da dahil olmak üzere 126 dilde görüntülerden ve PDF belgelerinden metin okumasını sağlar.

Tesseract'ın, yalnızca .NET geliştiricileri için özel olarak oluşturulmuş gelişmiş bir dalıdır ve hız ve doğruluk açısından diğer Tesseract motorlarını düzenli olarak geride bırakır.

IronOcr.Languages.Basque İçeriği

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

  • Baskça
  • BaskçaBest
  • BaskçaHızlı

İndir

Bask Dili Paketi [euskara]

Kurulum

Yapmamız gereken ilk şey, Baskça OCR paketimizi .NET projenize yüklemektir.

Install-Package IronOcr.Languages.Basque

Kod Örneği

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

// Import the IronOcr namespace
using IronOcr;

class BasqueOCRExample
{
    static void Main()
    {
        // Create a new instance of IronTesseract
        var Ocr = new IronTesseract();

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

        // Read the text from a Basque image or PDF
        using (var Input = new OcrInput(@"images\Basque.png"))
        {
            // Perform OCR to get the result
            var Result = Ocr.Read(Input);

            // Extract all text from the OCR result
            var AllText = Result.Text;

            // Output the extracted text
            System.Console.WriteLine(AllText);
        }
    }
}
// Import the IronOcr namespace
using IronOcr;

class BasqueOCRExample
{
    static void Main()
    {
        // Create a new instance of IronTesseract
        var Ocr = new IronTesseract();

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

        // Read the text from a Basque image or PDF
        using (var Input = new OcrInput(@"images\Basque.png"))
        {
            // Perform OCR to get the result
            var Result = Ocr.Read(Input);

            // Extract all text from the OCR result
            var AllText = Result.Text;

            // Output the extracted text
            System.Console.WriteLine(AllText);
        }
    }
}
' Import the IronOcr namespace
Imports IronOcr

Friend Class BasqueOCRExample
	Shared Sub Main()
		' Create a new instance of IronTesseract
		Dim Ocr = New IronTesseract()

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

		' Read the text from a Basque image or PDF
		Using Input = New OcrInput("images\Basque.png")
			' Perform OCR to get the result
			Dim Result = Ocr.Read(Input)

			' Extract all text from the OCR result
			Dim AllText = Result.Text

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

Bu kod, Bask dili için özel olarak IronOCR kullanarak bir OCR motoru ayarlar. Bir görüntü (veya PDF yolu) yükler, OCR yapar ve tüm metin içeriğini çıkarır, ardından konsola yazdırılır.