OCR jemer en C# y .NET
Other versions of this document:
IronOCR es un componente de software en C# que permite a los codificadores .NET leer texto de imágenes y documentos PDF en 126 idiomas, incluido el jemer.
Es una bifurcación avanzada de Tesseract, creada exclusivamente para desarrolladores de .NET y supera regularmente a otros motores de Tesseract tanto en velocidad como en precisión.
Contenido de IronOcr.Languages.Khmer
Este paquete contiene 102 idiomas OCR para .NET:
- Jemer
- JemerMejor
- JemerRápido
- AlfabetoJemer
- AlfabetoJemerMejor
- AlfabetoJemerRápido
Descargar
Paquete de idioma Jemer [ខមែរ]
Instalación
Lo primero que tenemos que hacer es instalar el paquete OCR Jemer en tu proyecto .NET.
Install-Package IronOCR.Languages.Khmer
Ejemplo de código
Este ejemplo de código C# lee texto en jemer de una imagen o documento PDF.
// Make sure the IronOCR package is installed:
// PM> Install-Package IronOcr.Languages.Khmer
using IronOcr;
class KhmerOcrExample
{
static void Main(string[] args)
{
// Create a new instance of IronTesseract for OCR processes
var Ocr = new IronTesseract();
// Specify the language for OCR as Khmer
Ocr.Language = OcrLanguage.Khmer;
// Define the path of the image file containing Khmer text
using (var Input = new OcrInput(@"images\Khmer.png"))
{
// Perform OCR on the input image
var Result = Ocr.Read(Input);
// Retrieve the recognized text
var AllText = Result.Text;
// Output the recognized text to the console
Console.WriteLine(AllText);
}
}
}// Make sure the IronOCR package is installed:
// PM> Install-Package IronOcr.Languages.Khmer
using IronOcr;
class KhmerOcrExample
{
static void Main(string[] args)
{
// Create a new instance of IronTesseract for OCR processes
var Ocr = new IronTesseract();
// Specify the language for OCR as Khmer
Ocr.Language = OcrLanguage.Khmer;
// Define the path of the image file containing Khmer text
using (var Input = new OcrInput(@"images\Khmer.png"))
{
// Perform OCR on the input image
var Result = Ocr.Read(Input);
// Retrieve the recognized text
var AllText = Result.Text;
// Output the recognized text to the console
Console.WriteLine(AllText);
}
}
}Este ejemplo demuestra cómo leer texto en jemer de un archivo de imagen usando IronOCR en una aplicación .NET C#.





