OCR feroés en C# y .NET
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 feroés.
Es una versión avanzada de Tesseract, construida exclusivamente para desarrolladores de .NET y que supera regularmente a otros motores Tesseract tanto en velocidad como en precisión.
Contenido de IronOcr.Languages.Faroese
Este paquete contiene 46 idiomas OCR para .NET:
- Feroés
- FeroésMejor
- FeroésRápido
Descargar
Paquete de Idioma Feroés [føroyskt]
Instalación
Lo primero que debe hacer es instalar el paquete OCR Feroés en su proyecto .NET:
Install-Package IronOCR.Languages.Faroese
Ejemplo de código
Este ejemplo de código en C# lee texto feroés de una imagen o documento PDF.
// Import the IronOcr namespace
using IronOcr;
class Program
{
static void Main()
{
// Create a new instance of IronTesseract
var Ocr = new IronTesseract();
// Specify the language to use for OCR
// In this case, we're using Faroese
Ocr.Language = OcrLanguage.Faroese;
// Use a using statement for automatic resource management
using (var Input = new OcrInput(@"images\Faroese.png"))
{
// Perform OCR on the input image
var Result = Ocr.Read(Input);
// Extract the recognized text
var AllText = Result.Text;
// Print the extracted text to console
Console.WriteLine(AllText);
}
}
}// Import the IronOcr namespace
using IronOcr;
class Program
{
static void Main()
{
// Create a new instance of IronTesseract
var Ocr = new IronTesseract();
// Specify the language to use for OCR
// In this case, we're using Faroese
Ocr.Language = OcrLanguage.Faroese;
// Use a using statement for automatic resource management
using (var Input = new OcrInput(@"images\Faroese.png"))
{
// Perform OCR on the input image
var Result = Ocr.Read(Input);
// Extract the recognized text
var AllText = Result.Text;
// Print the extracted text to console
Console.WriteLine(AllText);
}
}
}' Import the IronOcr namespace
Imports IronOcr
Friend Class Program
Shared Sub Main()
' Create a new instance of IronTesseract
Dim Ocr = New IronTesseract()
' Specify the language to use for OCR
' In this case, we're using Faroese
Ocr.Language = OcrLanguage.Faroese
' Use a using statement for automatic resource management
Using Input = New OcrInput("images\Faroese.png")
' Perform OCR on the input image
Dim Result = Ocr.Read(Input)
' Extract the recognized text
Dim AllText = Result.Text
' Print the extracted text to console
Console.WriteLine(AllText)
End Using
End Sub
End ClassIronTesseract: Este objeto sirve como el motor OCR principal.Ocr.Language: Configura el OCR para el idioma feroés. Asegúrese de que el paquete de idioma feroés esté instalado.OcrInput: Proporciona el archivo de entrada (imagen o PDF) para el OCR.Ocr.Read: Procesa la entrada y genera un resultado OCR.Result.Text: Extrae la información de texto de la operación OCR.





