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);
}
}
}' Make sure the IronOCR package is installed:
' PM> Install-Package IronOcr.Languages.Khmer
Imports IronOcr
Friend Class KhmerOcrExample
Shared Sub Main(ByVal args() As String)
' Create a new instance of IronTesseract for OCR processes
Dim 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 Input = New OcrInput("images\Khmer.png")
' Perform OCR on the input image
Dim Result = Ocr.Read(Input)
' Retrieve the recognized text
Dim AllText = Result.Text
' Output the recognized text to the console
Console.WriteLine(AllText)
End Using
End Sub
End ClassEste ejemplo demuestra cómo leer texto en jemer de un archivo de imagen usando IronOCR en una aplicación .NET C#.





