OCR vasco en C# y .NET
Other versions of this document:
IronOCR es un componente de software C# que permite a los programadores de .NET leer texto de imágenes y documentos PDF en 126 idiomas, incluido el vasco.
Es una derivació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.Basque
Este paquete contiene 43 idiomas OCR para .NET:
- Vasco
- VascoBest
- VascoFast
Descargar
Paquete de idioma vasco [euskara]
Instalación
Lo primero que tenemos que hacer es instalar nuestro paquete OCR Vasco en su proyecto .NET.
Install-Package IronOCR.Languages.Basque
Ejemplo de código
Este ejemplo de código C# lee texto vasco de una imagen o documento PDF.
// Import the IronOcr namespace
using IronOcr;
class BasqueOCRExample
{
static void Main()
{
// Create a new instance of IronTesseract
var Ocr = new IronTesseract();
// Set the language to Basque
Ocr.Language = OcrLanguage.Basque;
// Read the text from a Basque image or PDF
using (var Input = new OcrInput(@"images\Basque.png"))
{
// Perform OCR to get the result
var Result = Ocr.Read(Input);
// Extract all text from the OCR result
var AllText = Result.Text;
// Output the extracted text
System.Console.WriteLine(AllText);
}
}
}// Import the IronOcr namespace
using IronOcr;
class BasqueOCRExample
{
static void Main()
{
// Create a new instance of IronTesseract
var Ocr = new IronTesseract();
// Set the language to Basque
Ocr.Language = OcrLanguage.Basque;
// Read the text from a Basque image or PDF
using (var Input = new OcrInput(@"images\Basque.png"))
{
// Perform OCR to get the result
var Result = Ocr.Read(Input);
// Extract all text from the OCR result
var AllText = Result.Text;
// Output the extracted text
System.Console.WriteLine(AllText);
}
}
}' Import the IronOcr namespace
Imports IronOcr
Friend Class BasqueOCRExample
Shared Sub Main()
' Create a new instance of IronTesseract
Dim Ocr = New IronTesseract()
' Set the language to Basque
Ocr.Language = OcrLanguage.Basque
' Read the text from a Basque image or PDF
Using Input = New OcrInput("images\Basque.png")
' Perform OCR to get the result
Dim Result = Ocr.Read(Input)
' Extract all text from the OCR result
Dim AllText = Result.Text
' Output the extracted text
System.Console.WriteLine(AllText)
End Using
End Sub
End ClassEste código configura un motor OCR usando IronOCR específicamente para el idioma vasco. Carga una imagen (o ruta a PDF) para realizar OCR y extraer todo el contenido textual, que luego se imprime en la consola.





