Korean OCR in C# and .NET
Inne wersje tego dokumentu:
IronOCR to komponent oprogramowania C#, umożliwiający programistom .NET odczytywanie tekstu ze zdjęć i dokumentów PDF w 126 językach, w tym w koreańskim.
Jest to zaawansowany fork Tesseract, stworzony wyłącznie dla programistów .NET, który regularnie przewyższa inne silniki Tesseract pod względem szybkości i dokładności.
Zawartość IronOcr.Languages.Korean
Pakiet ten zawiera 108 języków OCR dla .NET:
- Korean
- KoreanBest
- KoreanFast
- KoreanVertical
- KoreanVerticalBest
- KoreanVerticalFast
Pobieranie
Korean Language Pack [한국어 (韓國語)]
Instalacja
Pierwszym krokiem jest zainstalowanie pakietu OCR Korean w swoim projekcie .NET.
Install-Package IronOcr.Languages.Korean
Przyklad kodu
Poniższy przykład kodu C# odczytuje tekst w języku koreańskim z obrazu lub dokumentu PDF.
// Ensure you have installed the IronOCR Korean language package
using IronOcr;
var Ocr = new IronTesseract();
// Specify that we want to use the Korean OCR capability
Ocr.Language = OcrLanguage.Korean;
// Create an OCR input, loading the image from the specified path
using (var Input = new OcrInput(@"images\Korean.png"))
{
// Use the OCR engine to read the text from the image
var Result = Ocr.Read(Input);
// Once reading is complete, extract the text from the result
var AllText = Result.Text;
// AllText now contains the text recognized from the image
}
// Ensure you have installed the IronOCR Korean language package
using IronOcr;
var Ocr = new IronTesseract();
// Specify that we want to use the Korean OCR capability
Ocr.Language = OcrLanguage.Korean;
// Create an OCR input, loading the image from the specified path
using (var Input = new OcrInput(@"images\Korean.png"))
{
// Use the OCR engine to read the text from the image
var Result = Ocr.Read(Input);
// Once reading is complete, extract the text from the result
var AllText = Result.Text;
// AllText now contains the text recognized from the image
}
' Ensure you have installed the IronOCR Korean language package
Imports IronOcr
Private Ocr = New IronTesseract()
' Specify that we want to use the Korean OCR capability
Ocr.Language = OcrLanguage.Korean
' Create an OCR input, loading the image from the specified path
Using Input = New OcrInput("images\Korean.png")
' Use the OCR engine to read the text from the image
Dim Result = Ocr.Read(Input)
' Once reading is complete, extract the text from the result
Dim AllText = Result.Text
' AllText now contains the text recognized from the image
End Using

