Korean OCR in C# and .NET
Outras versões deste documento:
IronOCR é um componente de software C# que permite aos programadores .NET ler texto de imagens e documentos PDF em 126 idiomas, incluindo Coreano.
É um fork avançado do Tesseract, construído exclusivamente para desenvolvedores .NET e supera regularmente outros motores Tesseract em termos de velocidade e precisão.
Conteúdo de IronOcr.Languages.Korean
Este pacote contém 108 linguagens OCR for .NET:
- Coreano
- CoreanoMelhor
- CoreanoRápido
- CoreanoVertical
- CoreanoVerticalMelhor
- CoreanoVerticalRápido
Baixar
Pacote de Idioma Coreano [한국어 (韓國語)]
Instalação
O primeiro passo é instalar o pacote OCR de Coreano no seu projeto .NET.
Install-Package IronOcr.Languages.Korean
Exemplo de código
Este exemplo de código C# lê texto coreano de uma imagem ou documento 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

