Telugu 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, .NET kodlayıcılarının, Telugu dahil 126 dilde, resimler ve PDF belgelerinden metin okumasını sağlayan 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.Telugu İçeriği

Bu paket, .NET için Telugu ile ilgili birkaç OCR dil modelini içerir:

  • Telugu
  • TeluguBest
  • TeluguFast
  • TeluguAlphabet
  • TeluguAlphabetBest
  • TeluguAlphabetFast

İndirme

Telugu Dili Paketi [తలుగు]

Kurulum

İlk adım, .NET projenize Telugu OCR paketini yüklemektir.

Install-Package IronOcr.Languages.Telugu

Kod Örneği

Bu, bir resim veya PDF belgesinden Telugu metni okuyabilen bir C# kod örneğidir.

// Ensure that you have installed the IronOcr.Languages.Telugu package before running this code.

using IronOcr;

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

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

        // Create a new OcrInput and specify the path to the image or PDF
        using (var Input = new OcrInput(@"images\Telugu.png"))
        {
            // Perform OCR on the input file
            var Result = Ocr.Read(Input);

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

            // Output the recognized text to the console (optional)
            Console.WriteLine(AllText);
        }
    }
}
// Ensure that you have installed the IronOcr.Languages.Telugu package before running this code.

using IronOcr;

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

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

        // Create a new OcrInput and specify the path to the image or PDF
        using (var Input = new OcrInput(@"images\Telugu.png"))
        {
            // Perform OCR on the input file
            var Result = Ocr.Read(Input);

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

            // Output the recognized text to the console (optional)
            Console.WriteLine(AllText);
        }
    }
}
Imports IronOcr

Public Class TeluguOcrExample
    Public Shared Sub Main()
        ' Create a new IronTesseract instance
        Dim Ocr As New IronTesseract()

        ' Specify the OCR language as Telugu
        Ocr.Language = OcrLanguage.Telugu

        ' Create a new OcrInput and specify the path to the image or PDF
        Using Input As New OcrInput("images\Telugu.png")
            ' Perform OCR on the input file
            Dim Result = Ocr.Read(Input)

            ' Extract and store the recognized text
            Dim AllText = Result.Text

            ' Output the recognized text to the console (optional)
            Console.WriteLine(AllText)
        End Using
    End Sub
End Class
$vbLabelText   $csharpLabel

Bu kod parçası, IronOCR paketini kullanarak bir OCR motorunu başlatır, OCR işlemesi için Telugu dilini ayarlar ve kullanıcı tarafından belirtilen giriş resim dosyasından metin okur.