OCR kazajo 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 kazajo.
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.Kazakh
Este paquete contiene 43 idiomas OCR para .NET:
- Kazajo
- KazakhBest
- KazakhFast
Descargar
Paquete de idioma kazajo [қазақ тілі]
Instalación
Lo primero que debemos hacer es instalar nuestro paquete OCR de Kazajo en tu proyecto .NET.
Install-Package IronOCR.Languages.Kazakh
Ejemplo de código
Este ejemplo de código C# lee texto kazajo de una imagen o documento PDF.
// Import the IronOcr namespace
using IronOcr;
class Program
{
static void Main()
{
// Initialize the IronTesseract OCR class
var Ocr = new IronTesseract();
// Set the OCR language to Kazakh
Ocr.Language = OcrLanguage.Kazakh;
// Use a 'using' statement to manage resources efficiently
using (var Input = new OcrInput(@"images\Kazakh.png"))
{
// Perform OCR on the input image
var Result = Ocr.Read(Input);
// Retrieve and store the recognized text
var AllText = Result.Text;
// Output the recognized text
Console.WriteLine(AllText);
}
}
}// Import the IronOcr namespace
using IronOcr;
class Program
{
static void Main()
{
// Initialize the IronTesseract OCR class
var Ocr = new IronTesseract();
// Set the OCR language to Kazakh
Ocr.Language = OcrLanguage.Kazakh;
// Use a 'using' statement to manage resources efficiently
using (var Input = new OcrInput(@"images\Kazakh.png"))
{
// Perform OCR on the input image
var Result = Ocr.Read(Input);
// Retrieve and store the recognized text
var AllText = Result.Text;
// Output the recognized text
Console.WriteLine(AllText);
}
}
}Este código demuestra cómo realizar reconocimiento óptico de caracteres (OCR) en un archivo de imagen llamado Kazakh.png utilizando IronOCR configurado para el idioma kazajo. El texto reconocido se extrae e imprime en la consola.





