Kyrgyz OCR in C# and .NET
Bu belgenin diğer versiyonları:
IronOCR, Kyrgyz dahil olmak üzere 126 dildeki metinleri resimlerden ve PDF belgelerinden okutabilen bir C# yazılım bileşenidir.
Tesseract'ın, yalnızca .NET geliştiricileri için özel olarak oluşturulmuş gelişmiş bir dalıdır ve hız ve doğruluk açısından diğer Tesseract motorlarını düzenli olarak geride bırakır.
IronOcr.Languages.Kyrgyz İçeriği
Bu paket, .NET için 43 OCR dili içerir:
- Kırgızca
- KırgızcaBest
- KırgızcaFast
İndir
Kyrgyz Dil Paketi [Кыргызча]
- Zip olarak indir
- NuGet ile yükle
Kurulum
İlk yapmamız gereken şey, Kyrgyz OCR paketimizi .NET projenize kurmaktır.
Kod Örneği
Bu C# kod örneği, bir resimden veya PDF belgesinden Kyrgyz metnini 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
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- Bu kod bloğu, OCR gerçekleştirmek için bir
IronTesseractnesnesi başlatır. OcrLanguage.Kyrgyzenum kullanarak dili Kırgızca olarak ayarlar.- Metnin çıkarılacağı dosya yolunu belirlemek için
OcrInputsınıfı kullanılır. Ocr.Read(Input)OCR işlemini gerçekleştirir veResult.Textile erişilebilen çıkarılmış metni içeren bir sonuç sağlar.- Son olarak,
Console.WriteLine(AllText)çıkarılan metni konsola çıktılar.
Curtis Chau, Bilgisayar Bilimleri alanında Lisans Derecesine (Carleton Üniversitesi) sahip ve Node.js, TypeScript, JavaScript ve React konularında uzmanlaşmış ön uç geliştirmeyle ilgileniyor. Sezgisel ve estetik açıdan hoş kullanıcı arayüzleri oluşturma tutkunu, Curtis modern çerçevelerle çalışmayı ve iyi yapılandırılmış, görsel olarak çekici kılavuzlar oluşturmayı seviyor.