OCR coréen en C# et .NET

This article was translated from English: Does it need improvement?
Translated
View the article in English
Other versions of this document:

IronOCR est un composant logiciel C# permettant aux développeurs .NET de lire du texte à partir d'images et de documents PDF en 126 langues, y compris le coréen.

Il s'agit d'une version avancée de Tesseract, conçue exclusivement pour les développeurs .NET et qui surpasse régulièrement les autres moteurs Tesseract en termes de vitesse et de précision.

Contenu d'IronOcr.Langues.Coréen

Ce package contient 108 langues OCR pour .NET :

  • Coréen
  • CoréenBest
  • CoréenFast
  • CoréenVertical
  • CoréenVerticalBest
  • CoréenVerticalFast

Télécharger

Pack de langue coréenne [한국어 (韓國語)]

  • Télécharger au format Zip
  • Installer avec NuGet

Installation

La première étape consiste à installer le package OCR coréen dans votre projet .NET.

Install-Package IronOCR.Languages.Korean

Exemple de code

Cet exemple de code C# lit du texte coréen à partir d'une image ou d'un document 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
$vbLabelText   $csharpLabel