Kyrgyz 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 Kırgız dili de dahil olmak üzere 126 dildeki görüntü ve PDF belgelerinden metin okuyabilmesini sağlar.
Tesseract'ın ileri düzey bir çatallamasıdır, yalnızca .NET geliştiricileri için oluşturulmuş olup hız ve doğruluk açısından diğer Tesseract motorlarını düzenli olarak geride bırakmaktadır.
IronOcr.Languages.Kyrgyz içeriği
Bu paket, .NET için 43 OCR dilini içerir:
- Kırgız
- KyrgyzBest
- KyrgyzFast
İndirme
Kırgız Dil Paketi [Кыргызча]
Kurulum
Yapmamız gereken ilk şey .NET projenize Kyrgyz OCR paketini yüklemek.
Install-Package IronOcr.Languages.Kyrgyz
Kod Örneği
Bu C# kod örneği, bir görüntü veya PDF belgesinden Kırgız dili metni okur.
// 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
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
- Bu kod bloğu OCR gerçekleştirmek için bir
IronTesseractnesnesi başlatır. - Dili
OcrLanguage.Kyrgyzenum'u kullanarak Kırgızca olarak ayarlar. OcrInputsınıfı, metnin çıkarılacağı görüntünün dosya yolunu belirtmek için kullanılır.Ocr.Read(Input)OCR sürecini yürütür veResult.Textaracılığıyla erişilebilen çıkarılan metni içeren bir sonuç sağlar.- Son olarak
Console.WriteLine(AllText)çıkarılan metni konsola çıkartır.

