OCR siríaco en C# y .NET
IronOCR es un componente de software en C# que permite a los programadores de .NET leer texto de imágenes y documentos PDF en 126 idiomas, incluido el siríaco.
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.Syriac
Este paquete contiene 108 idiomas de OCR para .NET:
- Siríaco
- SiríacoMejor
- SiríacoRápido
- AlfabetoSiríaco
- AlfabetoSiríacoMejor
- AlfabetoSiríacoRápido
Descargar
Paquete de idioma Siríaco [Siríaco]
Instalación
El primer paso es instalar el paquete OCR Siríaco en su proyecto .NET.
Install-Package IronOCR.Languages.Syriac
Ejemplo de código
Este ejemplo de código en C# lee texto en siríaco de una imagen o documento PDF.
// Import the IronOcr library
using IronOcr;
class Program
{
static void Main()
{
// Instantiate the IronTesseract object
var Ocr = new IronTesseract();
// Set the language to Syriac
Ocr.Language = OcrLanguage.Syriac;
// Create an OCR input from an image file
using (var Input = new OcrInput(@"images\Syriac.png"))
{
// Read the image and extract the text
var Result = Ocr.Read(Input);
// Retrieve the full recognized text
var AllText = Result.Text;
// Output the text to the console
Console.WriteLine(AllText);
}
}
}// Import the IronOcr library
using IronOcr;
class Program
{
static void Main()
{
// Instantiate the IronTesseract object
var Ocr = new IronTesseract();
// Set the language to Syriac
Ocr.Language = OcrLanguage.Syriac;
// Create an OCR input from an image file
using (var Input = new OcrInput(@"images\Syriac.png"))
{
// Read the image and extract the text
var Result = Ocr.Read(Input);
// Retrieve the full recognized text
var AllText = Result.Text;
// Output the text to the console
Console.WriteLine(AllText);
}
}
}' Import the IronOcr library
Imports IronOcr
Friend Class Program
Shared Sub Main()
' Instantiate the IronTesseract object
Dim Ocr = New IronTesseract()
' Set the language to Syriac
Ocr.Language = OcrLanguage.Syriac
' Create an OCR input from an image file
Using Input = New OcrInput("images\Syriac.png")
' Read the image and extract the text
Dim Result = Ocr.Read(Input)
' Retrieve the full recognized text
Dim AllText = Result.Text
' Output the text to the console
Console.WriteLine(AllText)
End Using
End Sub
End ClassEn este ejemplo:
- Creamos una instancia de
IronTesseractpara procesar OCR. - Se establece
Ocr.LanguageenSiríacopara asegurar un reconocimiento de texto preciso para este idioma. - Cargamos una imagen que contiene texto en siríaco en
OcrInputy la procesamos usandoOcr.Read. - El texto reconocido se almacena en
Result.Text, el cual puede ser utilizado posteriormente en su aplicación.





