Hangul Alphabet OCR in C# and .NET
IronOCR, .NET kodlayiciya, 126 dilde, Hangul Alfabesi dahil olmak üzere, resimlerden ve PDF belgelerinden metin okumalarini olanak taniyan bir C# yazilim bileşenidir.
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.Hangul'un Icerigi
Bu paket, .NET icin 156 OCR dili icerir:
- HangulAlphabet
- HangulAlphabetBest
- HangulAlphabetFast
- HangulVerticalAlphabet
- HangulVerticalAlphabetBest
- HangulVerticalAlphabetFast
İndirme
Hangul Alfabesi Dil Paketi [Korean Alphabet]
Kurulum
Ilk adim, .NET projenize Hangul Alfabesi OCR paketini kurmaktir.
Install-Package IronOcr.Languages.Hangul
Kod Örneği
Bu C# kod ornegi, bir Resim veya PDF belgesinden Hangul 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: Bu, OCR motorunun Hangul dil paketini kullanmasi gerektigini belirtir ve motoru Kore metin tanimasi icin optimize eder.
- OcrInput: Bu, islenecek resim veya PDF'ler icin bir kap anlamina gelir.
- Ocr.Read(): Bu method, OCR işlemini gerceklestirir ve taninmis metni iceren bir sonuc nesnesi doner.

