Kyrgyz OCR in C# and .NET
Otras versiones de este documento:
IronOCR es un componente de software C# que permite a los programadores .NET leer texto de imágenes y documentos PDF en 126 idiomas, incluyendo kirguís.
Es una rama avanzada de Tesseract, construida exclusivamente para desarrolladores de .NET y supera regularmente a otros motores de Tesseract tanto en velocidad como en precisión.
Contenido de IronOcr.Languages.Kyrgyz
Este paquete contiene 43 idiomas OCR for .NET:
- Kirguís
- KirguísBest
- KirguísFast
Descargar
Paquete de idioma kirguís [Кыргызча]
Instalación
Lo primero que tenemos que hacer es instalar nuestro paquete OCR de kirguís en tu proyecto .NET.
Ejemplo de código
Este ejemplo de código C# lee texto en kirguís de una imagen o documento PDF.
// Import the IronOcr namespace
using IronOcr;
public class KyrgyzOcrExample
{
public void PerformOcr()
{
// Initialize IronTesseract for OCR operations
var Ocr = new IronTesseract();
// Set the OCR language to Kyrgyz
Ocr.Language = OcrLanguage.Kyrgyz;
// Define the input using an image file path
using (var Input = new OcrInput(@"images\Kyrgyz.png"))
{
// Perform OCR and get the result
var Result = Ocr.Read(Input);
// Extracted text from the image
string AllText = Result.Text;
// Output the extracted text (or use it in your application as needed)
Console.WriteLine(AllText);
}
}
}' Import the IronOcr namespace
Imports IronOcr
Public Class KyrgyzOcrExample
Public Sub PerformOcr()
' Initialize IronTesseract for OCR operations
Dim Ocr = New IronTesseract()
' Set the OCR language to Kyrgyz
Ocr.Language = OcrLanguage.Kyrgyz
' Define the input using an image file path
Using Input = New OcrInput("images\Kyrgyz.png")
' Perform OCR and get the result
Dim Result = Ocr.Read(Input)
' Extracted text from the image
Dim AllText As String = Result.Text
' Output the extracted text (or use it in your application as needed)
Console.WriteLine(AllText)
End Using
End Sub
End Class' Import the IronOcr namespace
Imports IronOcr
Public Class KyrgyzOcrExample
Public Sub PerformOcr()
' Initialize IronTesseract for OCR operations
Dim Ocr = New IronTesseract()
' Set the OCR language to Kyrgyz
Ocr.Language = OcrLanguage.Kyrgyz
' Define the input using an image file path
Using Input = New OcrInput("images\Kyrgyz.png")
' Perform OCR and get the result
Dim Result = Ocr.Read(Input)
' Extracted text from the image
Dim AllText As String = Result.Text
' Output the extracted text (or use it in your application as needed)
Console.WriteLine(AllText)
End Using
End Sub
End Class- Este bloque de código inicializa un objeto
IronTesseractpara realizar el OCR. - Establece el idioma en kirguís utilizando la enumeración
OcrLanguage.Kyrgyz. - La clase
OcrInputse utiliza para especificar la ruta del archivo de la imagen de la que se extraerá el texto. Ocr.Read(Input)realiza el proceso de OCR y proporciona un resultado que contiene el texto extraído, accesible a través deResult.Text.- Por último,
Console.WriteLine(AllText)muestra el texto extraído en la consola.
Curtis Chau tiene una licenciatura en Ciencias de la Computación (Carleton University) y se especializa en el desarrollo front-end con experiencia en Node.js, TypeScript, JavaScript y React. Apasionado por crear interfaces de usuario intuitivas y estéticamente agradables, disfruta trabajando con frameworks modernos y creando manuales bien estructurados y visualmente atractivos.