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 für .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 Language Pack [हिदी]
Installation
Das Erste, was wir tun müssen, ist unser Hindi OCR-Paket in Ihrem .NET-Projekt zu installieren.
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
Imports IronOcr
Dim 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 UsingHinweis: Stellen Sie sicher, dass der Dateipfad zu
Hindi.pngkorrekt ist und die erforderlichen Pakete installiert sind.

Curtis Chau hat einen Bachelor-Abschluss in Informatik von der Carleton University und ist spezialisiert auf Frontend-Entwicklung mit Expertise in Node.js, TypeScript, JavaScript und React. Leidenschaftlich widmet er sich der Erstellung intuitiver und ästhetisch ansprechender Benutzerschnittstellen und arbeitet gerne mit modernen Frameworks sowie der Erstellung gut strukturierter, optisch ansprechender Handbücher.