OCR de Oriya en C# y .NET
Other versions of this document:
IronOCR es un componente de software en C# que permite a los programadores de .NET leer texto de imágenes y documentos PDF en 126 idiomas, incluido el Oriya. 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.Oriya
Este paquete contiene varios idiomas OCR para .NET:
- Oriya
- OriyaBest
- OriyaFast
- OriyaAlphabet
- OriyaAlphabetBest
- OriyaAlphabetFast
Descargar
Paquete de Idioma Oriya [ଓଡଆ]
Instalación
Lo primero que debemos hacer es instalar nuestro paquete OCR de Oriya en tu proyecto .NET.
Install-Package IronOCR.Languages.Oriya
Ejemplo de código
Este ejemplo de código en C# lee texto en Oriya de una imagen o documento PDF.
// This example demonstrates how to use the IronOCR library to perform OCR on an Oriya language image.
using IronOcr;
class Program
{
static void Main()
{
// Instantiate the IronTesseract engine
var Ocr = new IronTesseract();
// Set the OCR language to Oriya
Ocr.Language = OcrLanguage.Oriya;
// Define the input file path for the OCR
using (var Input = new OcrInput(@"images\Oriya.png"))
{
// Perform OCR and obtain the result
var Result = Ocr.Read(Input);
// Extract all recognized text from the result
var AllText = Result.Text;
// Output the recognized text
Console.WriteLine(AllText);
}
}
}// This example demonstrates how to use the IronOCR library to perform OCR on an Oriya language image.
using IronOcr;
class Program
{
static void Main()
{
// Instantiate the IronTesseract engine
var Ocr = new IronTesseract();
// Set the OCR language to Oriya
Ocr.Language = OcrLanguage.Oriya;
// Define the input file path for the OCR
using (var Input = new OcrInput(@"images\Oriya.png"))
{
// Perform OCR and obtain the result
var Result = Ocr.Read(Input);
// Extract all recognized text from the result
var AllText = Result.Text;
// Output the recognized text
Console.WriteLine(AllText);
}
}
}' This example demonstrates how to use the IronOCR library to perform OCR on an Oriya language image.
Imports IronOcr
Friend Class Program
Shared Sub Main()
' Instantiate the IronTesseract engine
Dim Ocr = New IronTesseract()
' Set the OCR language to Oriya
Ocr.Language = OcrLanguage.Oriya
' Define the input file path for the OCR
Using Input = New OcrInput("images\Oriya.png")
' Perform OCR and obtain the result
Dim Result = Ocr.Read(Input)
' Extract all recognized text from the result
Dim AllText = Result.Text
' Output the recognized text
Console.WriteLine(AllText)
End Using
End Sub
End Class- Se utiliza el objeto
IronTesseractpara configurar y realizar el OCR. - El idioma para el OCR se establece en Oriya utilizando
OcrLanguage.Oriya. OcrInputte permite especificar la imagen o documento del cual se necesita extraer texto.- El método
Read()realiza el OCR y produce un resultado del cual el texto reconocido puede ser extraído y utilizado.





