Fraktur Alphabet OCR in C
O IronOCR é um componente de software C# que permite aos programadores .NET ler texto de imagens e documentos PDF em 126 idiomas, incluindo o alfabeto Fraktur.
Trata-se de uma versão avançada do Tesseract, criada exclusivamente para desenvolvedores .NET e que supera regularmente outros mecanismos do Tesseract em termos de velocidade e precisão.
Conteúdo de IronOcr.Languages.Fraktur
Este pacote contém 70 idiomas de OCR for .NET:
- Alfabeto Fraktur
- Alfabeto FrakturBest
- Alfabeto FrakturFast
Baixar
Pacote de idiomas do alfabeto Fraktur [Fraktur genérico]
Instalação
A primeira coisa que precisamos fazer é instalar nosso pacote OCR do alfabeto Fraktur em seu projeto .NET .
Install-Package IronOcr.Languages.Fraktur
Exemplo de código
Este exemplo de código C# lê o texto do alfabeto Fraktur de uma imagem ou 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);
}
}
}
' Requires the IronOcr NuGet package and the Fraktur language package to be installed.
Imports IronOcr
Friend Class FrakturOCRExample
Shared Sub Main()
' Create an instance of the IronTesseract class
Dim Ocr = New IronTesseract()
' Set the OCR language to Fraktur
Ocr.Language = OcrLanguage.Fraktur
' Load the image containing Fraktur text
Using Input = New OcrInput("images\Fraktur.png")
' Perform OCR on the input image
Dim Result = Ocr.Read(Input)
' Retrieve and display the recognized text
Dim AllText = Result.Text
Console.WriteLine(AllText)
End Using
End Sub
End Class
Neste exemplo:
- Criamos um objeto
IronTesseractque serve como nosso motor OCR. - Alteramos a configuração de idioma para Fraktur usando
OcrLanguage.Fraktur. - Carregamos um arquivo de imagem (
@"images\Fraktur.png") em um objetoOcrInput. - O método
Ocr.Read()processa a imagem de entrada e retorna o resultado OCR. - Por fim, imprimimos o texto extraído no console.

