Cherokee OCR in C

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 Çerokice dahil olmak üzere 126 dildeki 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.Cherokee İçeriği

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

  • ÇerokiAlfabesi
  • ÇerokiAlfabesiEnIyi
  • ÇerokiAlfabesiHizli
  • Çeroki
  • ÇerokiEnIyi
  • ÇerokiHizli

İndirme

Çeroki Dil Paketi [ᏣᎳᎩ ᎦᏬᏂᎯᏍᏗ]

Kurulum

Yapmamız gereken ilk şey, Çeroki OCR paketimizi .NET projenize kurmaktır.

Install-Package IronOcr.Languages.Cherokee

Kod Örneği

Bu C# kod örneği, bir resim veya PDF belgesinden Çeroki metni okur.

// Import the IronOcr namespace
using IronOcr;

class Program
{
    static void Main()
    {
        // Create an instance of the IronTesseract class
        var Ocr = new IronTesseract();

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

        // Use OcrInput to specify the image or PDF to be read
        using (var Input = new OcrInput(@"images\Cherokee.png"))
        {
            // Perform OCR on the input document
            var Result = Ocr.Read(Input);

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

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

class Program
{
    static void Main()
    {
        // Create an instance of the IronTesseract class
        var Ocr = new IronTesseract();

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

        // Use OcrInput to specify the image or PDF to be read
        using (var Input = new OcrInput(@"images\Cherokee.png"))
        {
            // Perform OCR on the input document
            var Result = Ocr.Read(Input);

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

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

Friend Class Program
	Shared Sub Main()
		' Create an instance of the IronTesseract class
		Dim Ocr = New IronTesseract()

		' Set the language for OCR to Cherokee
		Ocr.Language = OcrLanguage.Cherokee

		' Use OcrInput to specify the image or PDF to be read
		Using Input = New OcrInput("images\Cherokee.png")
			' Perform OCR on the input document
			Dim Result = Ocr.Read(Input)

			' Extract all recognized text
			Dim AllText = Result.Text

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

İşte kodun nasıl çalıştığı hakkında kısa bir açıklama:

  • IronTesseract: OCR işlemlerini yönetmek için IronTesseract sınıfının bir örneği oluşturulur.
  • OcrLanguage.Cherokee: Dil, OCR motoruna Cherokee dilindeki metni tanımasını söyleyen OcrLanguage.Cherokee özelliği kullanılarak Cherokee olarak ayarlandı.
  • OcrInput: Görüntü veya PDF belgesinin bulunduğu OcrInput sınıfına bir giriş yolu sağlanır.
  • Ocr.Read: Giriş bilgisini geçirerek OCR nesnesi üzerinde Read yöntemi çağrılır. OCR işlemi gerçekleştirilir.
  • Result.Text: Tanınmış metni sonuçtan çıkarır ve daha fazla kullanım için AllText değişkenine kaydeder.
  • Konsol çıktısı: Tanınan metin konsola yazdırılır.