Tajik OCR in C# and .NET
Bu belgenin diğer versiyonları:
IronOCR, .NET kodlayıcılarının Tacikçe dahil olmak üzere 126 dilde resimlerden ve PDF belgelerinden metin okumasını sağlayan 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.Tajik İçeği
Bu paket, .NET için 40 OCR dilini içerir:
- Tacikçe
- TacikçeBest
- TacikHızlı
İndir
Tacik Dil Paketi [тоҷикӣ]
Kurulum
İlk yapmamız gereken şey, .NET projenize Tacik OCR paketimizi yüklemek.
Install-Package IronOcr.Languages.Tajik
Kod Örneği
Bu C# kod örneği, bir resim veya PDF belgesinden Tacikçe metin okur.
// Import the IronOcr namespace to use its functionality
using IronOcr;
class Program
{
static void Main()
{
// Create an instance of IronTesseract engine
var Ocr = new IronTesseract();
// Specify the language to use for OCR as Tajik
Ocr.Language = OcrLanguage.Tajik;
// Load the image file where the OCR is to be performed
using (var Input = new OcrInput(@"images\Tajik.png"))
{
// Perform OCR on the input image
var Result = Ocr.Read(Input);
// Extract the text from the OCR result
var AllText = Result.Text;
// Output the text to the console
Console.WriteLine(AllText);
}
}
}
// Import the IronOcr namespace to use its functionality
using IronOcr;
class Program
{
static void Main()
{
// Create an instance of IronTesseract engine
var Ocr = new IronTesseract();
// Specify the language to use for OCR as Tajik
Ocr.Language = OcrLanguage.Tajik;
// Load the image file where the OCR is to be performed
using (var Input = new OcrInput(@"images\Tajik.png"))
{
// Perform OCR on the input image
var Result = Ocr.Read(Input);
// Extract the text from the OCR result
var AllText = Result.Text;
// Output the text to the console
Console.WriteLine(AllText);
}
}
}
' Import the IronOcr namespace to use its functionality
Imports IronOcr
Friend Class Program
Shared Sub Main()
' Create an instance of IronTesseract engine
Dim Ocr = New IronTesseract()
' Specify the language to use for OCR as Tajik
Ocr.Language = OcrLanguage.Tajik
' Load the image file where the OCR is to be performed
Using Input = New OcrInput("images\Tajik.png")
' Perform OCR on the input image
Dim Result = Ocr.Read(Input)
' Extract the text from the OCR result
Dim AllText = Result.Text
' Output the text to the console
Console.WriteLine(AllText)
End Using
End Sub
End Class
- OCR işlevlerini kullanmak için
IronTesseractörneğini oluşturun. - OCR'nin Tacikçe dilinde işlem yapmasını belirtmek için dil özelliğini
OcrLanguage.Tajikolarak ayarlayın. - Metnin çıkarılacağı giriş resmini yükleyin.
Ocr.Readyöntemi, görüntüyü işler ve çıkarılan metni içeren sonucu döndürür.- Görüntüde algılanan tüm metni almak için sonucun
Textözelliğine erişin.

