Oriya OCR in C# and .NET
Otras versiones de este documento:
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 for .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.
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.
Imports IronOcr
Module Program
Sub Main()
' Instantiate the IronTesseract engine
Dim Ocr As New IronTesseract()
' Set the OCR language to Oriya
Ocr.Language = OcrLanguage.Oriya
' Define the input file path for the OCR
Using Input As 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 Module' This example demonstrates how to use the IronOCR library to perform OCR on an Oriya language image.
Imports IronOcr
Module Program
Sub Main()
' Instantiate the IronTesseract engine
Dim Ocr As New IronTesseract()
' Set the OCR language to Oriya
Ocr.Language = OcrLanguage.Oriya
' Define the input file path for the OCR
Using Input As 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 Module- El objeto
IronTesseractse utiliza para configurar y realizar el OCR. - El idioma para el OCR está configurado en oriya mediante
OcrLanguage.Oriya. - El
OcrInputte permite especificar la imagen o el documento del que se necesita extraer texto. - El método
Read()realiza el OCR y genera un resultado del que se puede extraer y utilizar el texto reconocido.
Curtis Chau tiene una licenciatura en Ciencias de la Computación (Carleton University) y se especializa en el desarrollo front-end con experiencia en Node.js, TypeScript, JavaScript y React. Apasionado por crear interfaces de usuario intuitivas y estéticamente agradables, disfruta trabajando con frameworks modernos y creando manuales bien estructurados y visualmente atractivos.