Hangul Alphabet OCR in C# and .NET
IronOCR, .NET kodlayıcılarının görüntülerden ve PDF belgelerinden, Kore Alfabesi dahil 126 dilde 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.Hangul İçeriği
Bu paket, .NET için 156 OCR dili içerir:
- HangulAlphabet
- HangulAlphabetBest
- HangulAlphabetFast
- HangulVerticalAlphabet
- HangulVerticalAlphabetBest
- HangulVerticalAlphabetFast
İndir
Hangul Alfabe Dil Paketi [Kore Alfabesi]
Kurulum
İlk adım, .NET projenize Hangul Alfabe OCR paketini yüklemektir.
Install-Package IronOcr.Languages.Hangul
Kod Örneği
Bu C# kod örneği, bir Görüntü veya PDF belgesinden Kore Alfabesi metni okur.
// Ensure the IronOCR library is installed
// PM> Install-Package IronOcr.Languages.Hangul
using IronOcr;
class Program
{
static void Main()
{
// Create a new instance of IronTesseract for performing OCR
var Ocr = new IronTesseract();
// Specify the Hangul language pack for better accuracy with Korean texts
Ocr.Language = OcrLanguage.Hangul;
// Load the image or PDF you want to read
using (var Input = new OcrInput(@"images\Hangul.png"))
{
// Perform OCR to read the text from the image
var Result = Ocr.Read(Input);
// Extract the recognized text
var AllText = Result.Text;
// Output the text to the console
Console.WriteLine(AllText);
}
}
}
// Ensure the IronOCR library is installed
// PM> Install-Package IronOcr.Languages.Hangul
using IronOcr;
class Program
{
static void Main()
{
// Create a new instance of IronTesseract for performing OCR
var Ocr = new IronTesseract();
// Specify the Hangul language pack for better accuracy with Korean texts
Ocr.Language = OcrLanguage.Hangul;
// Load the image or PDF you want to read
using (var Input = new OcrInput(@"images\Hangul.png"))
{
// Perform OCR to read the text from the image
var Result = Ocr.Read(Input);
// Extract the recognized text
var AllText = Result.Text;
// Output the text to the console
Console.WriteLine(AllText);
}
}
}
' Ensure the IronOCR library is installed
' PM> Install-Package IronOcr.Languages.Hangul
Imports IronOcr
Friend Class Program
Shared Sub Main()
' Create a new instance of IronTesseract for performing OCR
Dim Ocr = New IronTesseract()
' Specify the Hangul language pack for better accuracy with Korean texts
Ocr.Language = OcrLanguage.Hangul
' Load the image or PDF you want to read
Using Input = New OcrInput("images\Hangul.png")
' Perform OCR to read the text from the image
Dim Result = Ocr.Read(Input)
' Extract the recognized text
Dim AllText = Result.Text
' Output the text to the console
Console.WriteLine(AllText)
End Using
End Sub
End Class
Açıklama:
- IronTesseract: Bu, OCR işlemlerini gerçekleştirmek için kullanılan ana sınıftır.
- OcrLanguage.Hangul: OCR motorunun Korece metin tanıma için optimize edilen Hangul dil paketini kullanması gerektiğini belirtir.
- OcrInput: İşlenecek görüntülerin veya PDF'lerin bir konteyneridir.
- Ocr.Read(): Bu yöntem OCR işlemini gerçekleştirir ve tanınmış metni içeren bir sonuç nesnesi döndürür.

