OCR en gaélico escocés en C# y .NET

This article was translated from English: Does it need improvement?
Translated
View the article in English

126 idiomas más

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 gaélico escocés.

Es una rama 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.ScottishGaelic

Este paquete contiene 67 idiomas de OCR para .NET:

  • ScottishGaelic
  • ScottishGaelicBest
  • ScottishGaelicFast

Descargar

Paquete de idioma gaélico escocés [Gàidhlig]

Instalación

Lo primero que tenemos que hacer es instalar nuestro paquete OCR de gaélico escocés en tu proyecto .NET.

Install-Package IronOCR.Languages.ScottishGaelic

Ejemplo de código

Este ejemplo de código C# lee texto en gaélico escocés de una imagen o 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
$vbLabelText   $csharpLabel

El código anterior instala y configura un proceso de OCR usando IronOcr para el idioma gaélico escocés. Realiza reconocimiento óptico de caracteres en la imagen especificada ScottishGaelic.png y extrae el texto contenido en la imagen. El texto extraído se almacenará en la variable AllText para su posterior uso o procesamiento.