Scottish Gaelic OCR in C# and .NET
O IronOCR é um componente de software C# que permite aos programadores .NET ler texto de imagens e documentos PDF em 126 idiomas, incluindo o gaélico escocês.
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.ScottishGaelic
Este pacote contém 67 idiomas de OCR for .NET:
- Gaélico escocês
- Gaélico escocêsBest
- Gaélico escocêsFast
Baixar
Pacote de idioma gaélico escocês [Gàidhlig]
Instalação
A primeira coisa que precisamos fazer é instalar nosso pacote de OCR para gaélico escocês em seu projeto .NET.
Install-Package IronOcr.Languages.ScottishGaelic
Exemplo de código
Este exemplo de código C# lê texto em gaélico escocês a partir de uma imagem ou documento PDF.
// PM> Install-Package IronOcr.Languages.ScottishGaelic
using IronOcr;
// Create an instance of the IronTesseract class
var Ocr = new IronTesseract();
// Set the language to Scottish Gaelic
Ocr.Language = OcrLanguage.ScottishGaelic;
// Create an OcrInput object with the specified image or PDF file
using (var Input = new OcrInput(@"images\ScottishGaelic.png"))
{
// Perform OCR on the input and obtain the result
var Result = Ocr.Read(Input);
// Retrieve the recognized text
var AllText = Result.Text;
}
// PM> Install-Package IronOcr.Languages.ScottishGaelic
using IronOcr;
// Create an instance of the IronTesseract class
var Ocr = new IronTesseract();
// Set the language to Scottish Gaelic
Ocr.Language = OcrLanguage.ScottishGaelic;
// Create an OcrInput object with the specified image or PDF file
using (var Input = new OcrInput(@"images\ScottishGaelic.png"))
{
// Perform OCR on the input and obtain the result
var Result = Ocr.Read(Input);
// Retrieve the recognized text
var AllText = Result.Text;
}
' PM> Install-Package IronOcr.Languages.ScottishGaelic
Imports IronOcr
' Create an instance of the IronTesseract class
Private Ocr = New IronTesseract()
' Set the language to Scottish Gaelic
Ocr.Language = OcrLanguage.ScottishGaelic
' Create an OcrInput object with the specified image or PDF file
Using Input = New OcrInput("images\ScottishGaelic.png")
' Perform OCR on the input and obtain the result
Dim Result = Ocr.Read(Input)
' Retrieve the recognized text
Dim AllText = Result.Text
End Using
O código acima instala e configura um processo de OCR usando o IronOcr para o idioma gaélico escocês. Ele realiza reconhecimento óptico de caracteres na imagem especificada ScottishGaelic.png e extrai o texto contido na imagem. O texto extraído será armazenado na variável AllText para uso ou processamento posterior.

