Cebuano OCR in C#
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, incluyendo el cebuano. Es una bifurcación 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.Cebuano
Este paquete contiene 46 idiomas OCR for .NET:
- Cebuano
- CebuanoBest
- CebuanoFast
Descargar
Paquete de idioma Cebuano [Bisaya]
Instalación
Lo primero que tenemos que hacer es instalar nuestro paquete OCR Cebuano en su proyecto .NET.
Ejemplo de código
Este ejemplo de código en C# lee texto en cebuano de una imagen o documento PDF.
// Install the IronOCR Cebuano language package via NuGet package manager
// PM> Install-Package IronOcr.Languages.Cebuano
using IronOcr;
class Program
{
static void Main()
{
// Instantiate an IronTesseract object
var Ocr = new IronTesseract();
// Set the OCR language to Cebuano
Ocr.Language = OcrLanguage.Cebuano;
// Define the input source containing the image or PDF with Cebuano text
using (var Input = new OcrInput(@"images\Cebuano.png"))
{
// Perform OCR to read the text from the input source
var Result = Ocr.Read(Input);
// Extract and display the recognized text
var AllText = Result.Text;
Console.WriteLine(AllText);
}
}
}' Install the IronOCR Cebuano language package via NuGet package manager
' PM> Install-Package IronOcr.Languages.Cebuano
Imports IronOcr
Module Program
Sub Main()
' Instantiate an IronTesseract object
Dim Ocr As New IronTesseract()
' Set the OCR language to Cebuano
Ocr.Language = OcrLanguage.Cebuano
' Define the input source containing the image or PDF with Cebuano text
Using Input As New OcrInput("images\Cebuano.png")
' Perform OCR to read the text from the input source
Dim Result = Ocr.Read(Input)
' Extract and display the recognized text
Dim AllText = Result.Text
Console.WriteLine(AllText)
End Using
End Sub
End ModuleEl fragmento de código anterior demuestra cómo usar IronOCR para leer texto en cebuano de una imagen usando C# y .NET. Comienza configurando el motor OCR y especificando el idioma cebuano, luego procesa un archivo de imagen y extrae el texto. Asegúrese de que la ruta de la imagen esté correctamente especificada para su entorno de proyecto.

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.