Amharic OCR in C# and .NET
Bu belgenin diğer versiyonları:
IronOCR, .NET yazılımcılarının resimlerden ve PDF belgelerinden metin okumalarını sağlayan bir C# yazılım bileşenidir ve Amharik dahil 126 dili destekler.
Tesseract'ın geliştirilmiş bir dalıdır, yalnızca .NET geliştiricileri için geliştirilmiştir ve hem hız hem de doğruluk bakımından diğer Tesseract motorlarını düzenli olarak geride bırakır.
IronOcr.Languages.Amharic İçeriği
Bu paket, .NET için 46 OCR dili içerir:
- Amharik
- AmharikBest
- AmharikFast
İndirme
Amharik Dil Paketi [አማርኛ]
Kurulum
Yapmamız gereken ilk şey, Amharik OCR paketimizi .NET projenize yüklemektir.
Install-Package IronOcr.Languages.Amharic
Kod Örneği
Bu C# kod örneği, bir resim veya PDF belgesinden Amharik metin okur.
// Install the necessary Amharic language package for IronOCR
// PM> Install-Package IronOcr.Languages.Amharic
using IronOcr;
var Ocr = new IronTesseract(); // Create a new instance of the IronTesseract OCR engine
Ocr.Language = OcrLanguage.Amharic; // Set the OCR language to Amharic
// Read text from an image
using (var Input = new OcrInput(@"images\Amharic.png")) // Specify the path to the image file
{
var Result = Ocr.Read(Input); // Perform OCR on the input image
var AllText = Result.Text; // Get the extracted text from the OCR result
// The variable 'AllText' contains the text in Amharic read from the image
}
// Install the necessary Amharic language package for IronOCR
// PM> Install-Package IronOcr.Languages.Amharic
using IronOcr;
var Ocr = new IronTesseract(); // Create a new instance of the IronTesseract OCR engine
Ocr.Language = OcrLanguage.Amharic; // Set the OCR language to Amharic
// Read text from an image
using (var Input = new OcrInput(@"images\Amharic.png")) // Specify the path to the image file
{
var Result = Ocr.Read(Input); // Perform OCR on the input image
var AllText = Result.Text; // Get the extracted text from the OCR result
// The variable 'AllText' contains the text in Amharic read from the image
}
Imports IronOcr
' Install the necessary Amharic language package for IronOCR
' PM> Install-Package IronOcr.Languages.Amharic
Dim Ocr As New IronTesseract() ' Create a new instance of the IronTesseract OCR engine
Ocr.Language = OcrLanguage.Amharic ' Set the OCR language to Amharic
' Read text from an image
Using Input As New OcrInput("images\Amharic.png") ' Specify the path to the image file
Dim Result = Ocr.Read(Input) ' Perform OCR on the input image
Dim AllText = Result.Text ' Get the extracted text from the OCR result
' The variable 'AllText' contains the text in Amharic read from the image
End Using

