Oriya OCR in C# and .NET
Bu belgenin diğer versiyonları:
IronOCR, .NET kodlayıcılarının 126 dilde, Oriya de dahil olmak üzere, görüntülerden ve PDF belgelerinden metin okumaları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.Oriya İçeriği
Bu paket, .NET için birkaç OCR dili içerir:
- Oriya
- OriyaBest
- OriyaFast
- OriyaAlphabet
- OriyaAlphabetBest
- OriyaAlphabetFast
İndirme
Oriya Dil Paketi [ଓଡଆ]
Kurulum
İlk yapmamız gereken, .NET projenize Oriya OCR paketini yüklemektir.
Install-Package IronOcr.Languages.Oriya
Kod Örneği
Bu C# kod örneği, bir görüntü veya PDF belgesinden Oriya metnini okur.
// This example demonstrates how to use the IronOCR library to perform OCR on an Oriya language image.
using IronOcr;
class Program
{
static void Main()
{
// Instantiate the IronTesseract engine
var Ocr = new IronTesseract();
// Set the OCR language to Oriya
Ocr.Language = OcrLanguage.Oriya;
// Define the input file path for the OCR
using (var Input = new OcrInput(@"images\Oriya.png"))
{
// Perform OCR and obtain the result
var Result = Ocr.Read(Input);
// Extract all recognized text from the result
var AllText = Result.Text;
// Output the recognized text
Console.WriteLine(AllText);
}
}
}
// This example demonstrates how to use the IronOCR library to perform OCR on an Oriya language image.
using IronOcr;
class Program
{
static void Main()
{
// Instantiate the IronTesseract engine
var Ocr = new IronTesseract();
// Set the OCR language to Oriya
Ocr.Language = OcrLanguage.Oriya;
// Define the input file path for the OCR
using (var Input = new OcrInput(@"images\Oriya.png"))
{
// Perform OCR and obtain the result
var Result = Ocr.Read(Input);
// Extract all recognized text from the result
var AllText = Result.Text;
// Output the recognized text
Console.WriteLine(AllText);
}
}
}
' This example demonstrates how to use the IronOCR library to perform OCR on an Oriya language image.
Imports IronOcr
Friend Class Program
Shared Sub Main()
' Instantiate the IronTesseract engine
Dim Ocr = New IronTesseract()
' Set the OCR language to Oriya
Ocr.Language = OcrLanguage.Oriya
' Define the input file path for the OCR
Using Input = New OcrInput("images\Oriya.png")
' Perform OCR and obtain the result
Dim Result = Ocr.Read(Input)
' Extract all recognized text from the result
Dim AllText = Result.Text
' Output the recognized text
Console.WriteLine(AllText)
End Using
End Sub
End Class
IronTesseractnesnesi, OCR'yi yapılandırmak ve gerçekleştirmek için kullanılır.- OCR için dil,
OcrLanguage.Oriyakullanılarak Oriya olarak ayarlanır. OcrInput, metin çıkarması gereken resmi veya belgedi belirtmenize olanak tanır.Read()yöntemi, OCR'yi gerçekleştirir ve tanınan metnin çıkarılıp kullanılabileceği bir sonuç üretir.

