Gurmukhi Alphabet OCR in C# and .NET
IronOCR, .NET kodlayıcılarının 126 dil, Gurmukhi Alfabesi dahil, içerisinden resimler ve PDF belgelerinden metin okumalarını sağlayan bir C# yazılım bileşenidir.
Tesseract'ın, yalnızca .NET geliştiricileri için özel olarak oluşturulmuş gelişmiş bir dalıdır ve hız ve doğruluk açısından diğer Tesseract motorlarını düzenli olarak geride bırakır.
IronOcr.Languages.Gurmukhi İçeriği
Bu paket, .NET için 73 OCR dili içerir:
- GurmukhiAlphabet
- GurmukhiAlphabetBest
- GurmukhiAlphabetFast
İndir
Gurmukhi Alfabesi Dil Paketi [Gurmukhī]
Kurulum
Yapmamız gereken ilk şey, .NET projenize Gurmukhi Alfabesi OCR paketimizi kurmaktır.
Install-Package IronOcr.Languages.Gurmukhi
Kod Örneği
Bu C# kod örneği, bir Resim veya PDF belgesinden Gurmukhi Alfabesi metin 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 kullanabilmek için gerekli IronOCR kütüphanelerinin projenize yüklü olduğundan emin olun.
"images\Gurmukhi.png"yolunu, işlemek istediğiniz gerçek görüntü dosyasına yönlendirecek şekilde değiştirin.- Bu program, belirtilen görüntüden metin okur ve konsola çıktılar.

