Thaana Alphabet 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, Thaana Alfabesi dahil 126 dilde, resimler ve PDF belgelerinden metin okumasını sağlayan 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.Thaana İçeriği

Bu paket, .NET için 67 OCR dilini içerir:

  • ThaanaAlphabet
  • ThaanaAlphabetBest
  • ThaanaAlphabetFast

İndirme

Thaana Alfabesi Dil Paketi [Thaana]

Kurulum

İlk yapmamız gereken şey, .NET projenize Thaana Alfabesi OCR paketimizi yüklemektir.

Install-Package IronOcr.Languages.Thaana

Kod Örneği

Bu C# kod örneği, bir Resim veya PDF belgesinden Thaana Alfabesi metnini okur.

// Import the IronOcr namespace
using IronOcr;

// Create a new IronTesseract OCR object
var Ocr = new IronTesseract();

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

// Create an OcrInput object with the path to the image
using (var Input = new OcrInput(@"images\Thaana.png"))
{
    // Perform OCR on the input image to extract text
    var Result = Ocr.Read(Input);

    // Store the recognized text from the image in a variable
    var AllText = Result.Text;

    // Output the recognized text to the console or any other use
    Console.WriteLine(AllText);
}
// Import the IronOcr namespace
using IronOcr;

// Create a new IronTesseract OCR object
var Ocr = new IronTesseract();

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

// Create an OcrInput object with the path to the image
using (var Input = new OcrInput(@"images\Thaana.png"))
{
    // Perform OCR on the input image to extract text
    var Result = Ocr.Read(Input);

    // Store the recognized text from the image in a variable
    var AllText = Result.Text;

    // Output the recognized text to the console or any other use
    Console.WriteLine(AllText);
}
' Import the IronOcr namespace
Imports IronOcr

' Create a new IronTesseract OCR object
Private Ocr = New IronTesseract()

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

' Create an OcrInput object with the path to the image
Using Input = New OcrInput("images\Thaana.png")
	' Perform OCR on the input image to extract text
	Dim Result = Ocr.Read(Input)

	' Store the recognized text from the image in a variable
	Dim AllText = Result.Text

	' Output the recognized text to the console or any other use
	Console.WriteLine(AllText)
End Using
$vbLabelText   $csharpLabel
  • Yukarıdaki kod, Thaana yazısını içeren bir görüntüde OCR gerçekleştirmek için IronOCR'un nasıl kullanılacağını gösterir.
  • Bir OCR nesnesi kurar, dili belirtir ve belirtilen görüntü dosyasından metin okur.
  • Çıkarılan metin daha sonra uygulamanızda gerektiği gibi kullanılabilir.