Faroese 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 görüntülerden ve PDF belgelerinden, Faroece dahil 126 dilde metin okumasına olanak tanıyan bir C# yazılım bileşenidir.

Tesseract'ın geliştirilmiş bir dalıdır, yalnızca .NET geliştiricileri için geliştirilmiştir ve hem hız hem de doğruluk bakımından diğer Tesseract motorlarını düzenli olarak geride bırakır.

IronOcr.Languages.Faroese İçeriği

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

  • Faroece
  • FaroeceEnİyi
  • FaroeceHızlı

İndirme

Faroece Dil Paketi [føroyskt]

Kurulum

İlk yapılması gereken, Faroece OCR paketini .NET projenize kurmaktır:

Install-Package IronOcr.Languages.Faroese

Kod Örneği

Bu C# kod örneği, görüntü veya PDF belgesinden Faroece metni okur.

// Import the IronOcr namespace
using IronOcr;

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

        // Specify the language to use for OCR 
        // In this case, we're using Faroese
        Ocr.Language = OcrLanguage.Faroese;

        // Use a using statement for automatic resource management
        using (var Input = new OcrInput(@"images\Faroese.png"))
        {
            // Perform OCR on the input image
            var Result = Ocr.Read(Input);

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

            // Print the extracted text to console
            Console.WriteLine(AllText);
        }
    }
}
// Import the IronOcr namespace
using IronOcr;

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

        // Specify the language to use for OCR 
        // In this case, we're using Faroese
        Ocr.Language = OcrLanguage.Faroese;

        // Use a using statement for automatic resource management
        using (var Input = new OcrInput(@"images\Faroese.png"))
        {
            // Perform OCR on the input image
            var Result = Ocr.Read(Input);

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

            // Print the extracted text to console
            Console.WriteLine(AllText);
        }
    }
}
' Import the IronOcr namespace
Imports IronOcr

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

		' Specify the language to use for OCR 
		' In this case, we're using Faroese
		Ocr.Language = OcrLanguage.Faroese

		' Use a using statement for automatic resource management
		Using Input = New OcrInput("images\Faroese.png")
			' Perform OCR on the input image
			Dim Result = Ocr.Read(Input)

			' Extract the recognized text
			Dim AllText = Result.Text

			' Print the extracted text to console
			Console.WriteLine(AllText)
		End Using
	End Sub
End Class
$vbLabelText   $csharpLabel
  • IronTesseract: Bu nesne, temel OCR motoru olarak hizmet eder.
  • Ocr.Language: OCR'yi Faroe dili olarak ayarlar. Faroece dil paketinin yüklendiğinden emin olun.
  • OcrInput: OCR için giriş dosyasını (görüntü veya PDF) sağlar.
  • Ocr.Read: Girişi işler ve bir OCR sonucu üretir.
  • Result.Text: OCR işleminden metin bilgisini çıkarır.