Hindi OCR in C# and .NET
Andere Versionen dieses Dokuments:
IronOCR ist eine C# Softwarekomponente, die es .NET-Entwicklern ermöglicht, Text aus Bildern und PDF-Dokumenten in 126 Sprachen, einschließlich Hindi, zu lesen.
Es ist eine erweiterte Abspaltung von Tesseract, die exklusiv for .NET-Entwickler entwickelt wurde und regelmäßig andere Tesseract-Engines sowohl in Bezug auf Geschwindigkeit als auch Genauigkeit übertrifft.
Inhalte von IronOcr.Languages.Hindi
Dieses Paket enthält 40 OCR-Sprachen for .NET:
- Hindi
- HindiBest
- HindiFast
Download
Hindi Sprachpaket [हिनदी]
Installation
Das Erste, was wir tun müssen, ist unser Hindi OCR-Paket in Ihrem .NET-Projekt zu installieren.
Install-Package IronOcr.Languages.Hindi
Beispielcode
Dieses C#-Beispielcode liest Hindi-Text aus einem Bild oder PDF-Dokument.
// Make sure to install IronOcr.Languages.Hindi package before running the code
using IronOcr;
var Ocr = new IronTesseract(); // Create a new instance of the OCR engine
Ocr.Language = OcrLanguage.Hindi; // Set the language to Hindi
// Load the image file containing Hindi text
using (var Input = new OcrInput(@"images\Hindi.png"))
{
// Perform OCR on the image
var Result = Ocr.Read(Input);
// Extract the recognized text
var AllText = Result.Text;
// Optionally, you can print the extracted text
Console.WriteLine(AllText);
}
// Make sure to install IronOcr.Languages.Hindi package before running the code
using IronOcr;
var Ocr = new IronTesseract(); // Create a new instance of the OCR engine
Ocr.Language = OcrLanguage.Hindi; // Set the language to Hindi
// Load the image file containing Hindi text
using (var Input = new OcrInput(@"images\Hindi.png"))
{
// Perform OCR on the image
var Result = Ocr.Read(Input);
// Extract the recognized text
var AllText = Result.Text;
// Optionally, you can print the extracted text
Console.WriteLine(AllText);
}
' Make sure to install IronOcr.Languages.Hindi package before running the code
Imports IronOcr
Private Ocr = New IronTesseract() ' Create a new instance of the OCR engine
Ocr.Language = OcrLanguage.Hindi ' Set the language to Hindi
' Load the image file containing Hindi text
Using Input = New OcrInput("images\Hindi.png")
' Perform OCR on the image
Dim Result = Ocr.Read(Input)
' Extract the recognized text
Dim AllText = Result.Text
' Optionally, you can print the extracted text
Console.WriteLine(AllText)
End Using
Hinweis: Stellen Sie sicher, dass der Dateipfad zu Hindi.png korrekt ist und die erforderlichen Pakete installiert sind.

