Cherokee OCR in C
IronOCR, .NET kodlayıcılarının görüntülerden ve PDF belgelerinden 126 dilde, Cherokee 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.Cherokee İçeriği
Bu paket, .NET için 120 OCR dili içerir:
- CherokeeAlphabet
- CherokeeAlphabetBest
- CherokeeAlphabetFast
- Cherokee
- CherokeeBest
- CherokeeFast
İndir
Cherokee Dil Paketi [ᏣᎳᎩ ᎦᏬᏂᎯᏍᏗ]
Kurulum
Yapmamız gereken ilk şey, .NET projenize Cherokee OCR paketimizi yüklemektir.
Install-Package IronOcr.Languages.Cherokee
Kod Örneği
Bu C# kod örneği, bir görüntüden veya PDF belgesinden Cherokee metni okur.
// Import the IronOcr namespace
using IronOcr;
class Program
{
static void Main()
{
// Create an instance of the IronTesseract class
var Ocr = new IronTesseract();
// Set the language for OCR to Cherokee
Ocr.Language = OcrLanguage.Cherokee;
// Use OcrInput to specify the image or PDF to be read
using (var Input = new OcrInput(@"images\Cherokee.png"))
{
// Perform OCR on the input document
var Result = Ocr.Read(Input);
// Extract all recognized text
var AllText = Result.Text;
// Display the recognized text
Console.WriteLine(AllText);
}
}
}
// Import the IronOcr namespace
using IronOcr;
class Program
{
static void Main()
{
// Create an instance of the IronTesseract class
var Ocr = new IronTesseract();
// Set the language for OCR to Cherokee
Ocr.Language = OcrLanguage.Cherokee;
// Use OcrInput to specify the image or PDF to be read
using (var Input = new OcrInput(@"images\Cherokee.png"))
{
// Perform OCR on the input document
var Result = Ocr.Read(Input);
// Extract all recognized text
var AllText = Result.Text;
// Display the recognized text
Console.WriteLine(AllText);
}
}
}
' Import the IronOcr namespace
Imports IronOcr
Friend Class Program
Shared Sub Main()
' Create an instance of the IronTesseract class
Dim Ocr = New IronTesseract()
' Set the language for OCR to Cherokee
Ocr.Language = OcrLanguage.Cherokee
' Use OcrInput to specify the image or PDF to be read
Using Input = New OcrInput("images\Cherokee.png")
' Perform OCR on the input document
Dim Result = Ocr.Read(Input)
' Extract all recognized text
Dim AllText = Result.Text
' Display the recognized text
Console.WriteLine(AllText)
End Using
End Sub
End Class
İşte kodun nasıl çalıştığına dair kısa bir açıklama:
- IronTesseract: OCR işlemlerini gerçekleştirmek için IronTesseract sınıfının bir örneği oluşturulur.
- OcrLanguage.Cherokee: Dil, OCR motoruna Cherokee dilindeki metni tanımasını söyleyen
OcrLanguage.Cherokeeözelliği kullanılarak Cherokee olarak ayarlanır. - OcrInput: Görüntünün veya PDF belgesinin bulunduğu
OcrInputsınıfına bir giriş yolu sağlanır. - Ocr.Read:
Readyöntemi, OCR nesnesinde çağrılır ve girdi aktarılır. Bu, OCR işlemini yürütür. - Result.Text: Sonuçtan tanınan metni çıkarır ve daha sonra kullanılmak üzere
AllTextdeğişkeninde saklar. - Konsol çıktısı: Tanınan metin konsola yazdırılır.

