Cyrillic Alphabet OCR in C
IronOCR, .NET kodlayıcılarının görüntülerden ve PDF belgelerinden 126 dilde, Kiril Alfabesi dahil, metin okumasına olanak tanıyan 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.Cyrillic İçeriği
Bu paket, .NET için 73 OCR dili içerir:
- Kiril Alfabesi
- Kiril AlfabesiBest
- Kiril AlfabesiFast
İndir
Kiril Alfabesi Dil Paketi [Kiril harfleri]
Kurulum
Yapmanız gereken ilk şey, .NET projenize Kiril Alfabesi OCR paketini yüklemektir.
Install-Package IronOcr.Languages.Cyrillic
Kod Örneği
Bu C# kod örneği, bir Görüntüden veya PDF belgesinden Kiril Alfabesi metni okur.
using IronOcr;
public class OcrExample
{
public void ReadCyrillicText()
{
// Initialize a new instance of the IronTesseract OCR engine
var Ocr = new IronTesseract();
// Set the OCR engine to use the Cyrillic language package
Ocr.Language = OcrLanguage.Cyrillic;
// Create a new OCR input from an image file
using (var Input = new OcrInput(@"images\Cyrillic.png"))
{
// Read the image using the OCR engine
var Result = Ocr.Read(Input);
// Retrieve Recognized Text
var AllText = Result.Text;
// Output the recognized text to the console
Console.WriteLine(AllText);
}
}
}
using IronOcr;
public class OcrExample
{
public void ReadCyrillicText()
{
// Initialize a new instance of the IronTesseract OCR engine
var Ocr = new IronTesseract();
// Set the OCR engine to use the Cyrillic language package
Ocr.Language = OcrLanguage.Cyrillic;
// Create a new OCR input from an image file
using (var Input = new OcrInput(@"images\Cyrillic.png"))
{
// Read the image using the OCR engine
var Result = Ocr.Read(Input);
// Retrieve Recognized Text
var AllText = Result.Text;
// Output the recognized text to the console
Console.WriteLine(AllText);
}
}
}
Imports IronOcr
Public Class OcrExample
Public Sub ReadCyrillicText()
' Initialize a new instance of the IronTesseract OCR engine
Dim Ocr = New IronTesseract()
' Set the OCR engine to use the Cyrillic language package
Ocr.Language = OcrLanguage.Cyrillic
' Create a new OCR input from an image file
Using Input = New OcrInput("images\Cyrillic.png")
' Read the image using the OCR engine
Dim Result = Ocr.Read(Input)
' Retrieve Recognized Text
Dim AllText = Result.Text
' Output the recognized text to the console
Console.WriteLine(AllText)
End Using
End Sub
End Class
IronTesseract: Bu, OCR görevlerini yapılandırmak ve yürütmek için kullandığınız OCR motoru sınıfıdır.OcrInput: OCR işlemi uygulamak istediğiniz giriş görüntüsünü veya belgeyi temsil eden bir sınıf.OcrLanguage.Cyrillic: OCR motorunun tanıma için Kiril dil paketini kullanması gerektiğini belirtir.Result.Text: OCR sonuç nesnesinden tanınan metne erişir.
Bu örnek, Kiril metni içeren bir resmin metnin çıkarılması için nasıl işlendiğini basit bir kullanım durumunda göstermektedir.

