Gurmukhi Alphabet OCR in C# and .NET
IronOCR ist eine C#-Softwarekomponente, die es .NET-Entwicklern ermöglicht, Text aus Bildern und PDF-Dokumenten in 126 Sprachen, einschließlich des Gurmukhi-Alphabets, zu lesen.
Es ist eine fortschrittliche Abspaltung von Tesseract, die ausschließlich for .NET-Entwickler gebaut wurde und regelmäßig andere Tesseract-Engines sowohl in Geschwindigkeit als auch Genauigkeit übertrifft.
Inhalte von IronOcr.Languages.Gurmukhi
Dieses Paket enthält 73 OCR-Sprachen for .NET:
- GurmukhiAlphabet
- GurmukhiAlphabetBest
- GurmukhiAlphabetFast
Download
Gurmukhi-Alphabet-Sprachpaket [Gurmukhī]
Installation
Das Erste, was wir tun müssen, ist unser Gurmukhi-Alphabet-OCR-Paket in Ihr .NET-Projekt zu installieren.
Install-Package IronOcr.Languages.Gurmukhi
Beispielcode
Dieses C#-Codebeispiel liest Gurmukhi-Alphabet-Text aus einem Bild oder PDF-Dokument.
// 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
- Stellen Sie sicher, dass die notwendigen IronOCR-Bibliotheken in Ihrem Projekt installiert sind, um das Gurmukhi-Sprachpaket zu verwenden.
- Ändern Sie den Pfad
"images\Gurmukhi.png"so, dass er auf die tatsächliche Bilddatei verweist, die Sie verarbeiten möchten. - Dieses Programm liest Text aus dem angegebenen Bild und gibt ihn auf der Konsole aus.

