Tibetan Alphabet OCR in C# and .NET
IronOCR, C# ile yazılmış bir yazılım bileşenidir ve .NET kodlayıcılarının, Tibet Alfabesi dahil olmak üzere 126 dilde resimlerden ve PDF belgelerinden metin okumasına olanak tanır.
Bu, .NET geliştiricileri için özel olarak geliştirilmiş Tesseract'ın gelişmiş bir çatallaması olup, hem hız hem de doğruluk açısından diğer Tesseract motorlarını düzenli olarak geride bırakır.
IronOcr.Languages.Tibetan'ın İçeriği
Bu paket, .NET için 114 OCR dilini içerir:
- Tibetçe
- TibetçeBest
- TibetçeFast
- TibetçeAlphabet
- TibetçeAlphabetBest
- TibetçeAlphabetFast
İndirme
Tibet Alfabesi Dil Paketi [Tibetan Standard]
Kurulum
Yapmanız gereken ilk şey, .NET projenize Tibet Alfabesi OCR paketini kurmaktır.
Install-Package IronOcr.Languages.Tibetan
Kod Örneği
Bu C# kod örneği, bir resimden veya PDF belgesinden Tibet Alfabesi metni okur.
// Import the IronOcr namespace to use its components
using IronOcr;
class Program
{
static void Main()
{
// Initialize a new IronTesseract object for OCR
var Ocr = new IronTesseract();
// Set the OCR language to Tibetan
Ocr.Language = OcrLanguage.Tibetan;
// Use a using statement for automatic resource disposal
using (var Input = new OcrInput(@"images\Tibetan.png"))
{
// Perform OCR to read text from the input image
var Result = Ocr.Read(Input);
// Retrieve all recognized text from the OCR Result
var AllText = Result.Text;
// Output the recognized text to the console
// Note: Ensure that the console supports Tibetan script for correct display
Console.WriteLine(AllText);
}
}
}
// Import the IronOcr namespace to use its components
using IronOcr;
class Program
{
static void Main()
{
// Initialize a new IronTesseract object for OCR
var Ocr = new IronTesseract();
// Set the OCR language to Tibetan
Ocr.Language = OcrLanguage.Tibetan;
// Use a using statement for automatic resource disposal
using (var Input = new OcrInput(@"images\Tibetan.png"))
{
// Perform OCR to read text from the input image
var Result = Ocr.Read(Input);
// Retrieve all recognized text from the OCR Result
var AllText = Result.Text;
// Output the recognized text to the console
// Note: Ensure that the console supports Tibetan script for correct display
Console.WriteLine(AllText);
}
}
}
' Import the IronOcr namespace to use its components
Imports IronOcr
Friend Class Program
Shared Sub Main()
' Initialize a new IronTesseract object for OCR
Dim Ocr = New IronTesseract()
' Set the OCR language to Tibetan
Ocr.Language = OcrLanguage.Tibetan
' Use a using statement for automatic resource disposal
Using Input = New OcrInput("images\Tibetan.png")
' Perform OCR to read text from the input image
Dim Result = Ocr.Read(Input)
' Retrieve all recognized text from the OCR Result
Dim AllText = Result.Text
' Output the recognized text to the console
' Note: Ensure that the console supports Tibetan script for correct display
Console.WriteLine(AllText)
End Using
End Sub
End Class
Notlar
- OCR kutuphanesi (
IronTesseract), verilen görüntüden Tibet dilini okumak üzere yapılandırılmıştır. OcrInput, giriş görüntüsünün yüklenmesini başa çıkarır ve kaynakların uygun şekilde elden çıkarılmasınıusingifadesini kullanarak sağlar.Result.Text, uygulama içinde yazdırılabilen veya kullanılabilen OCR ile işlenmiş metni içerir.

