Hebrew OCR in C# and .NET
Andere Versionen dieses Dokuments:
IronOCR ist eine C#-Softwarekomponente, die .NET-Entwicklern erlaubt, Text aus Bildern und PDF-Dokumenten in 126 Sprachen, einschließlich Hebräisch, zu lesen.
Es ist eine erweiterte Abspaltung von Tesseract, die exklusiv for .NET-Entwickler entwickelt wurde und regelmäßig andere Tesseract-Engines sowohl in Bezug auf Geschwindigkeit als auch Genauigkeit übertrifft.
Inhalte von IronOcr.Languages.Hebrew
Dieses Paket enthält 108 OCR-Sprachen for .NET:
- Hebräisch
- HebrewBest
- HebrewFast
- HebrewAlphabet
- HebrewAlphabetBest
- HebrewAlphabetFast
Download
Hebräisches Sprachpaket [עברית]
Installation
Das Erste, was wir tun müssen, ist unser Hebrew OCR-Paket in Ihr .NET-Projekt zu installieren.
Install-Package IronOcr.Languages.Hebrew
Beispielcode
Dieses C#-Codebeispiel liest hebräischen Text aus einem Bild oder PDF-Dokument.
// Include the IronOcr namespace to work with OCR features
using IronOcr;
// Create an OCR engine
var Ocr = new IronTesseract();
// Set the OCR engine language to Hebrew
Ocr.Language = OcrLanguage.Hebrew;
// Process the image and extract text using OCR
using (var Input = new OcrInput(@"images\Hebrew.png"))
{
// Read the text from the input image
var Result = Ocr.Read(Input);
// Store the extracted text
var AllText = Result.Text;
// Output the extracted text to the console (optional)
Console.WriteLine(AllText);
}
// Include the IronOcr namespace to work with OCR features
using IronOcr;
// Create an OCR engine
var Ocr = new IronTesseract();
// Set the OCR engine language to Hebrew
Ocr.Language = OcrLanguage.Hebrew;
// Process the image and extract text using OCR
using (var Input = new OcrInput(@"images\Hebrew.png"))
{
// Read the text from the input image
var Result = Ocr.Read(Input);
// Store the extracted text
var AllText = Result.Text;
// Output the extracted text to the console (optional)
Console.WriteLine(AllText);
}
' Include the IronOcr namespace to work with OCR features
Imports IronOcr
' Create an OCR engine
Private Ocr = New IronTesseract()
' Set the OCR engine language to Hebrew
Ocr.Language = OcrLanguage.Hebrew
' Process the image and extract text using OCR
Using Input = New OcrInput("images\Hebrew.png")
' Read the text from the input image
Dim Result = Ocr.Read(Input)
' Store the extracted text
Dim AllText = Result.Text
' Output the extracted text to the console (optional)
Console.WriteLine(AllText)
End Using
- IronTesseract: Diese Klasse wird verwendet, um die OCR-Engine zu initialisieren.
- OcrInput: Dies repräsentiert das Eingangsbild oder Dokument, das die OCR-Engine lesen wird.
- Ocr.Read: Diese Methode verarbeitet die Eingabe und gibt das Ergebnis mit dem extrahierten Text zurück.
- Result.Text: Speichert den extrahierten Text, der für weitere Verarbeitung verwendet werden kann.

