Gurmukhi Alphabet OCR in C# and .NET
IronOCR, .NET kodlayiciya, 126 dilde, Gurmukhi Alfabesi dahil olmak üzere, resimlerden ve PDF belgelerinden metin okumalarini olanak taniyan bir C# yazilim 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.Gurmukhi'nin Icerigi
Bu paket, .NET için 73 OCR dili içerir:
- GurmukhiAlphabet
- GurmukhiAlphabetBest
- GurmukhiAlphabetFast
İndirme
Gurmukhi Alfabe Dil Paketi [Gurmukhī]
Kurulum
Yapmamiz gereken ilk şey, .NET projenize Gurmukhi Alfabesi OCR paketimizi kurmaktir.
Install-Package IronOcr.Languages.Gurmukhi
Kod Örneği
Bu C# kod ornegi, bir Resim veya PDF belgesinden Gurmukhi Alfabesi metni okur.
// Import the IronOcr namespace
using IronOcr;
class Program
{
static void Main()
{
// Create a new instance of IronTesseract
var Ocr = new IronTesseract();
// Set the OCR language to Gurmukhi
Ocr.Language = OcrLanguage.Gurmukhi;
// Define the input source for OCR using an image file path
using (var Input = new OcrInput(@"images\Gurmukhi.png"))
{
// Perform OCR on the input
var Result = Ocr.Read(Input);
// Retrieve the recognized text
var AllText = Result.Text;
// Output the recognized text
Console.WriteLine(AllText);
}
}
}
// Import the IronOcr namespace
using IronOcr;
class Program
{
static void Main()
{
// Create a new instance of IronTesseract
var Ocr = new IronTesseract();
// Set the OCR language to Gurmukhi
Ocr.Language = OcrLanguage.Gurmukhi;
// Define the input source for OCR using an image file path
using (var Input = new OcrInput(@"images\Gurmukhi.png"))
{
// Perform OCR on the input
var Result = Ocr.Read(Input);
// Retrieve the recognized text
var AllText = Result.Text;
// Output the recognized text
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()
' Set the OCR language to Gurmukhi
Ocr.Language = OcrLanguage.Gurmukhi
' Define the input source for OCR using an image file path
Using Input = New OcrInput("images\Gurmukhi.png")
' Perform OCR on the input
Dim Result = Ocr.Read(Input)
' Retrieve the recognized text
Dim AllText = Result.Text
' Output the recognized text
Console.WriteLine(AllText)
End Using
End Sub
End Class
- Gurmukhi dil paketini kullanmak icin gerekli IronOCR kutuphanelerinin projenizde kurulu oldugundan emin olun.
- İşlemek istediginiz gerçek resim dosyasina isaret etmek icin
"images\Gurmukhi.png"yolunu değiştirin. - Bu program, belirtilen resimden metin okur ve konsola ciktisini verir.

