Nepali 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, darunter Nepali, 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.
Inhalt von IronOcr.Languages.Nepali
Dieses Paket enthält 43 OCR-Sprachen for .NET:
- Nepali
- NepaliBest
- NepaliFast
Download
Nepali-Sprachpaket [नपाली]
Installation
Das erste, was wir tun müssen, ist unser Nepali OCR-Paket in Ihr .NET-Projekt zu installieren.
Beispielcode
Dieses C#-Codebeispiel liest nepalesischen Text aus einem Bild oder PDF-Dokument.
// First, ensure the IronOCR and the Nepali language pack are installed:
// PM> Install-Package IronOcr.Languages.Nepali
// Import the IronOcr namespace to access the required OCR functionalities.
using IronOcr;
class NepaliOcrExample
{
public void ReadNepaliText()
{
// Create an instance of IronTesseract, the main class for performing OCR tasks.
var Ocr = new IronTesseract();
// Set the language to Nepali. Ensure you have the Nepali language package installed.
Ocr.Language = OcrLanguage.Nepali;
// Specify the input image or PDF file which contains Nepali text.
using (var Input = new OcrInput(@"images\Nepali.png"))
{
// Perform the OCR operation on the input and get the result.
var Result = Ocr.Read(Input);
// Extract the recognized text from the result.
var AllText = Result.Text;
// Print the recognized text to the console.
System.Console.WriteLine(AllText);
}
}
}' First, ensure the IronOCR and the Nepali language pack are installed:
' PM> Install-Package IronOcr.Languages.Nepali
' Import the IronOcr namespace to access the required OCR functionalities.
Imports IronOcr
Class NepaliOcrExample
Public Sub ReadNepaliText()
' Create an instance of IronTesseract, the main class for performing OCR tasks.
Dim Ocr As New IronTesseract()
' Set the language to Nepali. Ensure you have the Nepali language package installed.
Ocr.Language = OcrLanguage.Nepali
' Specify the input image or PDF file which contains Nepali text.
Using Input As New OcrInput("images\Nepali.png")
' Perform the OCR operation on the input and get the result.
Dim Result = Ocr.Read(Input)
' Extract the recognized text from the result.
Dim AllText = Result.Text
' Print the recognized text to the console.
System.Console.WriteLine(AllText)
End Using
End Sub
End Class
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.