OCR nepalí en C# y .NET
Other versions of this document:
IronOCR es un componente de software de C# que permite a los programadores de .NET leer texto desde imágenes y documentos PDF en 126 idiomas, incluyendo el nepalí.
Es una rama avanzada de Tesseract, construida exclusivamente para desarrolladores de .NET y supera regularmente a otros motores de Tesseract tanto en velocidad como en precisión.
Contenido de IronOcr.Languages.Nepali
Este paquete contiene 43 idiomas OCR para .NET:
- Nepalí
- NepalíBest
- NepalíFast
Descargar
Paquete de idioma nepalí [नपाली]
Instalación
Lo primero que tenemos que hacer es instalar nuestro paquete OCR de nepalí en tu proyecto .NET.
Install-Package IronOcr.Languages.Nepali
Ejemplo de código
Este ejemplo de código en C# lee texto nepalí de una imagen o documento PDF.
// 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.
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
Friend Class NepaliOcrExample
Public Sub ReadNepaliText()
' Create an instance of IronTesseract, the main class for performing OCR tasks.
Dim 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 Input = 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




