C# ve .NET'te Yunan Alfabesi OCR
Bu belgenin diğer versiyonları:
IronOCR, .NET kodlayıcılarının Yunan Alfabesi dahil 126 dilde resimlerden ve PDF belgelerinden metin okumasını sağlayan bir C# yazılım bileşenidir.
Tesseract'ın, yalnızca .NET geliştiricileri için özel olarak oluşturulmuş gelişmiş bir dalıdır ve hız ve doğruluk açısından diğer Tesseract motorlarını düzenli olarak geride bırakır.
IronOcr.Languages.Greek İçeriği
Bu paket, .NET için 102 OCR dilini içerir:
- Greek
- GreekBest
- GreekFast
- GreekAlphabet
- GreekAlphabetBest
- GreekAlphabetFast
İndir
Yunan Alfabesi Dil Paketi [ελληνικά]
Kurulum
İlk adım, .NET projenize Yunan Alfabesi OCR paketini kurmaktır.
Kod Örneği
Bu C# kod örneği, bir resim veya PDF belgesinden Yunan Alfabesi metni okur.
// Import the IronOcr namespace
using IronOcr;
class GreekOcrExample
{
static void Main()
{
// Initialize the IronTesseract OCR engine
var Ocr = new IronTesseract();
// Set the OCR language to Greek
Ocr.Language = OcrLanguage.Greek;
// Load the image or PDF containing Greek text
using (var Input = new OcrInput(@"images\Greek.png"))
{
// Perform OCR and get the result
var Result = Ocr.Read(Input);
// Extract all recognized text
var AllText = Result.Text;
// Output the recognized text
System.Console.WriteLine(AllText);
}
}
}' Import the IronOcr namespace
Imports IronOcr
Class GreekOcrExample
Shared Sub Main()
' Initialize the IronTesseract OCR engine
Dim Ocr As New IronTesseract()
' Set the OCR language to Greek
Ocr.Language = OcrLanguage.Greek
' Load the image or PDF containing Greek text
Using Input As New OcrInput("images\Greek.png")
' Perform OCR and get the result
Dim Result = Ocr.Read(Input)
' Extract all recognized text
Dim AllText = Result.Text
' Output the recognized text
System.Console.WriteLine(AllText)
End Using
End Sub
End Class' Import the IronOcr namespace
Imports IronOcr
Class GreekOcrExample
Shared Sub Main()
' Initialize the IronTesseract OCR engine
Dim Ocr As New IronTesseract()
' Set the OCR language to Greek
Ocr.Language = OcrLanguage.Greek
' Load the image or PDF containing Greek text
Using Input As New OcrInput("images\Greek.png")
' Perform OCR and get the result
Dim Result = Ocr.Read(Input)
' Extract all recognized text
Dim AllText = Result.Text
' Output the recognized text
System.Console.WriteLine(AllText)
End Using
End Sub
End Class- IronTesseract: Bu sınıf, OCR işlemini gerçekleştirmekten sorumludur.
- OcrInput: Bu sınıf, OCR işleme için görüntüleri veya PDF dosyalarını yüklemek amacıyla kullanılır.
Ocr.Read(): Girdi verilerinde OCR gerçekleştirme ve tanınan metni sağlama yöntemi.
Bu kodu çalıştırmadan önce, .NET projenizde IronOCR kütüphanesinin ve Yunanca dil paketinin düzgün bir şekilde yüklenmiş olduğundan emin olun. Bu kod, images/Greek.png konumunda bulunan görüntüden çıkarılan metni çıktı olarak verecektir.
Curtis Chau, Bilgisayar Bilimleri alanında Lisans Derecesine (Carleton Üniversitesi) sahip ve Node.js, TypeScript, JavaScript ve React konularında uzmanlaşmış ön uç geliştirmeyle ilgileniyor. Sezgisel ve estetik açıdan hoş kullanıcı arayüzleri oluşturma tutkunu, Curtis modern çerçevelerle çalışmayı ve iyi yapılandırılmış, görsel olarak çekici kılavuzlar oluşturmayı seviyor.