Syriac OCR in C# and .NET
IronOCR ist eine C# Softwarekomponente, die es .NET-Entwicklern ermöglicht, Text aus Bildern und PDF-Dokumenten in 126 Sprachen, einschließlich Syrisch, zu lesen.
Es ist eine fortschrittliche Abspaltung von Tesseract, die ausschließlich for .NET-Entwickler gebaut wurde und regelmäßig andere Tesseract-Engines sowohl in Geschwindigkeit als auch Genauigkeit übertrifft.
Inhalte von IronOcr.Languages.Syriac
Dieses Paket enthält 108 OCR-Sprachen for .NET:
- Syrisch
- SyrischBest
- SyrischSchnell
- SyrischesAlphabet
- SyrischesAlphabetBest
- SyrischesAlphabetFast
Download
Syrische Sprachpaket [Syrisch]
Installation
Der erste Schritt besteht darin, das Syrisch-OCR-Paket in Ihrem .NET-Projekt zu installieren.
Install-Package IronOcr.Languages.Syriac
Beispielcode
Dieses C#-Codebeispiel liest syrischen Text aus einem Bild oder PDF-Dokument.
// 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 Class
In diesem Beispiel:
- Wir erstellen eine Instanz von
IronTesseractzur OCR-Verarbeitung. - Der Code
Ocr.Languagewurde aufSyriacgesetzt, um eine genaue Texterkennung für diese Sprache zu gewährleisten. - Wir laden ein Bild mit syrischem Text in
OcrInputund verarbeiten es mitOcr.Read. Der erkannte Text wird dann inResult.Textgespeichert und kann in Ihrer Anwendung weiterverwendet werden.

