Hebrew OCR in C# and .NET
Autres versions de ce document :
IronOCR est un composant logiciel C# permettant aux développeurs .NET de lire du texte à partir d'images et de documents PDF dans 126 langues, dont l'hébreu.
Il s'agit d'une version avancée de Tesseract, conçue exclusivement pour les développeurs .NET et qui surpasse régulièrement les autres moteurs Tesseract en termes de vitesse et de précision.
Contenu de IronOcr.Languages.Hebrew
Ce package contient 108 langues OCR for .NET :
- Hébreu
- HebrewBest
- Jeudi hébreu
- Alphabet hébreu
- Meilleur alphabet hébreu
- Alphabet hébreu rapide
Télécharger
Pack de langue hébraïque [hébreu]
Installation
La première chose à faire est d'installer notre package OCR hébreu sur votre projet .NET.
Install-Package IronOcr.Languages.Hebrew
Exemple de code
Cet exemple de code C# lit du texte hébreu à partir d'une image ou d'un document PDF.
// 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 : Cette classe est utilisée pour initialiser le moteur OCR.
- OcrInput : Ceci représente l'image ou le document d'entrée que le moteur OCR lira.
- Ocr.Read : Cette méthode traite l'entrée et renvoie le résultat contenant le texte extrait.
- Result.Text : Stocke le texte extrait qui peut être utilisé pour un traitement ultérieur.

