Fraktur Alphabet OCR en C#
IronOCR es un componente de software C# que permite a los programadores .NET leer texto de imágenes y documentos PDF en 126 idiomas, incluido el Alfabeto Fraktur.
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.Fraktur
Este paquete contiene 70 idiomas de OCR para .NET:
- FrakturAlphabet
- FrakturAlphabetBest
- FrakturAlphabetFast
Descargar
Paquete de idioma Alfabeto Fraktur [Generic Fraktur]
Instalación
Lo primero que tenemos que hacer es instalar nuestro paquete OCR de Alfabeto Fraktur en tu proyecto .NET.
Install-Package IronOCR.Languages.Fraktur
Ejemplo de código
Este ejemplo de código C# lee texto del Alfabeto Fraktur desde una imagen o documento PDF.
// Requires the IronOcr NuGet package and the Fraktur language package to be installed.
using IronOcr;
class FrakturOCRExample
{
static void Main()
{
// Create an instance of the IronTesseract class
var Ocr = new IronTesseract();
// Set the OCR language to Fraktur
Ocr.Language = OcrLanguage.Fraktur;
// Load the image containing Fraktur text
using (var Input = new OcrInput(@"images\Fraktur.png"))
{
// Perform OCR on the input image
var Result = Ocr.Read(Input);
// Retrieve and display the recognized text
var AllText = Result.Text;
Console.WriteLine(AllText);
}
}
}// Requires the IronOcr NuGet package and the Fraktur language package to be installed.
using IronOcr;
class FrakturOCRExample
{
static void Main()
{
// Create an instance of the IronTesseract class
var Ocr = new IronTesseract();
// Set the OCR language to Fraktur
Ocr.Language = OcrLanguage.Fraktur;
// Load the image containing Fraktur text
using (var Input = new OcrInput(@"images\Fraktur.png"))
{
// Perform OCR on the input image
var Result = Ocr.Read(Input);
// Retrieve and display the recognized text
var AllText = Result.Text;
Console.WriteLine(AllText);
}
}
}En este ejemplo:
- Creamos un objeto
IronTesseractque sirve como nuestro motor OCR. - Cambiamos la configuración del idioma a Fraktur usando
OcrLanguage.Fraktur. - Cargamos un archivo de imagen (
"@images\Fraktur.png") en un objetoOcrInput. - El método
Ocr.Read()procesa la imagen de entrada y devuelve el resultado OCR. - Finalmente, imprimimos el texto extraído en la consola.





