OCR cebuano en 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 para .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.
Install-Package IronOCR.Languages.Cebuano
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
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
Friend Class Program
Shared Sub Main()
' Instantiate an IronTesseract object
Dim 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 Input = 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 ClassEl 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.





