OCR mongol en C# y .NET
Other versions of this document:
IronOCR es un componente de software C# que permite a los programadores de .NET leer texto de imágenes y documentos PDF en 126 idiomas, incluido el mongol.
Es una versión avanzada de Tesseract, construida exclusivamente para desarrolladores de .NET y que supera regularmente a otros motores Tesseract tanto en velocidad como en precisión.
Contenido de IronOcr.Languages.Mongolian
Este paquete contiene 52 idiomas de OCR para .NET:
- Mongol
- MongolianBest
- MongolianFast
Descargar
Paquete de idioma mongol [монгол]
Instalación
El primer paso es instalar el paquete OCR mongol en su proyecto .NET.
Install-Package IronOCR.Languages.Mongolian
Ejemplo de código
Este ejemplo de código C# lee texto mongol de una imagen o documento PDF.
using IronOcr;
class Program
{
static void Main()
{
// Create a new instance of IronTesseract
var Ocr = new IronTesseract();
// Set the language to Mongolian
Ocr.Language = OcrLanguage.Mongolian;
// Define the input as an image located in the "images" directory
using (var Input = new OcrInput(@"images\Mongolian.png"))
{
// Perform OCR on the input image
var Result = Ocr.Read(Input);
// Extract all recognized text
var AllText = Result.Text;
// Output the recognized text to the console
Console.WriteLine(AllText);
}
}
}using IronOcr;
class Program
{
static void Main()
{
// Create a new instance of IronTesseract
var Ocr = new IronTesseract();
// Set the language to Mongolian
Ocr.Language = OcrLanguage.Mongolian;
// Define the input as an image located in the "images" directory
using (var Input = new OcrInput(@"images\Mongolian.png"))
{
// Perform OCR on the input image
var Result = Ocr.Read(Input);
// Extract all recognized text
var AllText = Result.Text;
// Output the recognized text to the console
Console.WriteLine(AllText);
}
}
}Imports IronOcr
Friend Class Program
Shared Sub Main()
' Create a new instance of IronTesseract
Dim Ocr = New IronTesseract()
' Set the language to Mongolian
Ocr.Language = OcrLanguage.Mongolian
' Define the input as an image located in the "images" directory
Using Input = New OcrInput("images\Mongolian.png")
' Perform OCR on the input image
Dim Result = Ocr.Read(Input)
' Extract all 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 usar IronOCR para realizar el reconocimiento óptico de caracteres en una imagen de texto mongol. Inicializa el motor OCR, configura el idioma y procesa la entrada de imagen para recuperar y mostrar el texto reconocido.





