Hangul Alphabet OCR in C# and .NET
IronOCR ist eine C#-Softwarekomponente, die .NET-Entwicklern ermöglicht, Text aus Bildern und PDF-Dokumenten in 126 Sprachen, einschließlich des Hangul-Alphabets, zu lesen.
Es ist eine fortschrittliche Abspaltung von Tesseract, die ausschließlich for .NET-Entwickler gebaut wurde und regelmäßig andere Tesseract-Engines sowohl in Geschwindigkeit als auch Genauigkeit übertrifft.
Inhalte von IronOcr.Languages.Hangul
Dieses Paket enthält 156 OCR-Sprachen for .NET:
- HangulAlphabet
- HangulAlphabetBest
- HangulAlphabetFast
- HangulVerticalAlphabet
- HangulVerticalAlphabetBest
- HangulVerticalAlphabetFast
Download
Hangul-Alphabet-Sprachpaket [Koreanisches Alphabet]
Installation
Der erste Schritt ist die Installation des OCR-Pakets Hangul Alphabet in Ihr .NET-Projekt.
Install-Package IronOcr.Languages.Hangul
Beispielcode
Dieses C#-Codebeispiel liest Hangul-Alphabet-Text aus einem Bild oder PDF-Dokument.
// 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
Erklärung:
- IronTesseract: Dies ist die Hauptklasse, die für die Ausführung von OCR-Operationen verwendet wird.
- OcrLanguage.Hangul: Dies gibt an, dass die OCR-Engine das Hangul-Sprachpaket verwenden soll, das die Engine für die Erkennung koreanischer Texte optimiert.
- OcrInput: Dies ist ein Container für die zu verarbeitenden Bilder oder PDFs.
- Ocr.Read(): Diese Methode führt die OCR-Operation durch und gibt ein Ergebnisobjekt zurück, das den erkannten Text enthält.

