Hebrew OCR in C# and .NET
Bu belgenin diğer versiyonları:
IronOCR, .NET kodlayiciya, 126 dilde, Ibranice dahil olmak üzere, resimlerden ve PDF belgelerinden metin okumalarini olanak taniyan bir C# yazilim bileşenidir.
Tesseract'ın ileri düzey bir çatallamasıdır, yalnızca .NET geliştiricileri için oluşturulmuş olup hız ve doğruluk açısından diğer Tesseract motorlarını düzenli olarak geride bırakmaktadır.
IronOcr.Languages.Hebrew'un Icerigi
Bu paket, .NET için 108 OCR dili içerir:
- Hebrew
- HebrewBest
- HebrewFast
- HebrewAlphabet
- HebrewAlphabetBest
- HebrewAlphabetFast
İndirme
Ibranice Dil Paketi [עברית]
Kurulum
Yapmamiz gereken ilk şey, .NET projenize Ibranice OCR paketimizi kurmaktir.
Install-Package IronOcr.Languages.Hebrew
Kod Örneği
Bu C# kod ornegi, bir Resim veya PDF belgesinden Ibranice metni okur.
// 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: Bu sınıf, OCR motorunu başlatmak icin kullanilir.
- OcrInput: Bu, OCR motorunun okuyacagi girdi resimi veya belgesini temsil eder.
- Ocr.Read: Bu method girdiyi isleyip cikarilan metni iceren sonucu doner.
- Result.Text: Daha ileri işlem icin kullanilabilecek cikarilan metni saklar.

