Kazakh OCR in C# and .NET
Bu belgenin diğer versiyonları:
IronOCR, C# yazılım bileşeni olan bir bileşen olup, .NET kodlayıcılarının Kazak dili de dahil olmak üzere 126 dildeki görüntü ve PDF belgelerinden metin okuyabilmesini sağlar.
Tesseract'ın geliştirilmiş bir dalıdır, yalnızca .NET geliştiricileri için geliştirilmiştir ve hem hız hem de doğruluk bakımından diğer Tesseract motorlarını düzenli olarak geride bırakır.
IronOcr.Languages.Kazakh içeriği
Bu paket, .NET için 43 OCR dilini içerir:
- Kazak
- KazakhBest
- KazakhFast
İndirme
Kazak Dil Paketi [қазақ тілі]
Kurulum
Yapmamız gereken ilk şey .NET projenize Kazakh OCR paketini yüklemek.
Install-Package IronOcr.Languages.Kazakh
Kod Örneği
Bu C# kod örneği, bir görüntü veya PDF belgesinden Kazak dili metni okur.
// 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
Bu kod, Kazak dili için yapılandırılmış IronOCR kullanarak Kazakh.png adlı bir resim dosyasında Optik Karakter Tanıma (OCR) işlemi nasıl yapılacağını gösterir. Tanınan metin çıkarılır ve konsola yazdırılır.

