Khmer 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 olan bir bileşen olup, .NET kodlayıcılarının Khmer dili de dahil olmak üzere 126 dildeki görüntü ve PDF belgelerinden metin okuyabilmesini sağlar.

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.Khmer içeriği

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

  • Khmer
  • KhmerBest
  • KhmerFast
  • KhmerAlphabet
  • KhmerAlphabetBest
  • KhmerAlphabetFast

İndirme

Khmer Dil Paketi [ខមែរ]

Kurulum

Yapmamız gereken ilk şey .NET projenize Khmer OCR paketini yüklemek.

Install-Package IronOcr.Languages.Khmer

Kod Örneği

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

// Make sure the IronOCR package is installed:
// PM> Install-Package IronOcr.Languages.Khmer
using IronOcr;

class KhmerOcrExample
{
    static void Main(string[] args)
    {
        // Create a new instance of IronTesseract for OCR processes
        var Ocr = new IronTesseract();

        // Specify the language for OCR as Khmer
        Ocr.Language = OcrLanguage.Khmer;

        // Define the path of the image file containing Khmer text
        using (var Input = new OcrInput(@"images\Khmer.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);
        }
    }
}
// Make sure the IronOCR package is installed:
// PM> Install-Package IronOcr.Languages.Khmer
using IronOcr;

class KhmerOcrExample
{
    static void Main(string[] args)
    {
        // Create a new instance of IronTesseract for OCR processes
        var Ocr = new IronTesseract();

        // Specify the language for OCR as Khmer
        Ocr.Language = OcrLanguage.Khmer;

        // Define the path of the image file containing Khmer text
        using (var Input = new OcrInput(@"images\Khmer.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);
        }
    }
}
' Make sure the IronOCR package is installed:
' PM> Install-Package IronOcr.Languages.Khmer
Imports IronOcr

Friend Class KhmerOcrExample
	Shared Sub Main(ByVal args() As String)
		' Create a new instance of IronTesseract for OCR processes
		Dim Ocr = New IronTesseract()

		' Specify the language for OCR as Khmer
		Ocr.Language = OcrLanguage.Khmer

		' Define the path of the image file containing Khmer text
		Using Input = New OcrInput("images\Khmer.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, bir .NET C# uygulamasında IronOCR kullanarak bir görüntü dosyasından Khmer dilinde metin okumayı gösterir.