Middle English 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 yazılımcılarının 126 dilde, Orta İngilizce de dahil olmak üzere, görüntüler ve PDF belgelerinden metin okumasına izin veren bir C# yazılım bileşenidir.

Sadece .NET geliştiricileri için inşa edilen Tesseract'ın gelişmiş bir dalı olup, hem hız hem de doğruluk açısından diğer Tesseract motorlarını sık sık geride bırakır.

IronOcr.Languages.MiddleEnglish İçeriği

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

  • Orta İngilizce
  • Orta İngilizce En İyi
  • Orta İngilizce Hızlı

İndirme

Orta İngilizce Dil Paketi [İngilizce (1100-1500 AD)]

Kurulum

İlk yapmamız gereken şey, .NET projenize Orta İngilizce OCR paketimizi kurmaktır.

Install-Package IronOcr.Languages.MiddleEnglish

Kod Örneği

Bu C# kod örneği, Orta İngilizce metni bir görüntüden veya PDF belgesinden okur.

// Import the IronOcr namespace
using IronOcr;

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

        // Set the language to Middle English
        Ocr.Language = OcrLanguage.MiddleEnglish;

        // Define the input source as an image file
        using (var Input = new OcrInput(@"images\MiddleEnglish.png"))
        {
            // Perform OCR to read the text from the input
            var Result = Ocr.Read(Input);

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

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

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

        // Set the language to Middle English
        Ocr.Language = OcrLanguage.MiddleEnglish;

        // Define the input source as an image file
        using (var Input = new OcrInput(@"images\MiddleEnglish.png"))
        {
            // Perform OCR to read the text from the input
            var Result = Ocr.Read(Input);

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

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

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

		' Set the language to Middle English
		Ocr.Language = OcrLanguage.MiddleEnglish

		' Define the input source as an image file
		Using Input = New OcrInput("images\MiddleEnglish.png")
			' Perform OCR to read the text from the input
			Dim Result = Ocr.Read(Input)

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

			' Output the recognized text
			Console.WriteLine(AllText)
		End Using
	End Sub
End Class
$vbLabelText   $csharpLabel
  • İronOCR paketine ve uygun dil paketine sahip olduğunuzdan emin olun.
  • Bu örnek, OCR motorunu başlatır, Orta İngilizce'yi işlemek için ayarlar, girdi görüntüsünden metin okur ve tanınan metni çıktılar.