Kazakh OCR in C# and .NET
Outras versões deste documento:
O IronOCR é um componente de software C# que permite aos desenvolvedores .NET ler texto a partir de imagens e documentos PDF em 126 idiomas, incluindo o cazaque.
Trata-se de uma versão avançada do Tesseract, criada exclusivamente para desenvolvedores .NET e que supera regularmente outros mecanismos do Tesseract em termos de velocidade e precisão.
Conteúdos de IronOcr.Languages.Kazakh
Este pacote contém 43 linguagens OCR for .NET:
- Cazaque
- CazaqueMelhor
- CazaqueRápido
Baixar
Pacote de Idioma Cazaque [қазақ тілі]
Instalação
A primeira coisa que temos que fazer é instalar nosso pacote OCR de Kazakh no seu projeto .NET.
Install-Package IronOcr.Languages.Kazakh
Exemplo de código
Este exemplo de código C# lê texto em Kazakh de uma imagem ou 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);
}
}
}
' Import the IronOcr namespace
Imports IronOcr
Friend Class Program
Shared Sub Main()
' Initialize the IronTesseract OCR class
Dim Ocr = New IronTesseract()
' Set the OCR language to Kazakh
Ocr.Language = OcrLanguage.Kazakh
' Use a 'using' statement to manage resources efficiently
Using Input = New OcrInput("images\Kazakh.png")
' Perform OCR on the input image
Dim Result = Ocr.Read(Input)
' Retrieve and store the recognized text
Dim AllText = Result.Text
' Output the recognized text
Console.WriteLine(AllText)
End Using
End Sub
End Class
Este código demonstra como realizar Reconhecimento Óptico de Caracteres (OCR) em um arquivo de imagem chamado Kazakh.png usando IronOCR configurado para a língua cazaque. O texto reconhecido é extraído e impresso no console.

