Turkish OCR in C# and .NET
Bu belgenin diğer versiyonları:
IronOCR, Türkçe dahil 126 dilde resimlerden ve PDF belgelerinden metin okuyan 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.Turkish İçeği
Bu paket, .NET için 46 OCR dilini içerir:
- Türkçe
- TürkçeEn İyi
- TürkçeHızlı
İndir
Türkçe Dil Paketi [Türkçe]
Kurulum
İlk adım, aşağıdaki NuGet paket yöneticisi komutunu kullanarak .NET projenize Türkçe OCR paketini yüklemektir.
Install-Package IronOcr.Languages.Turkish
Kod Örneği
Bu C# kod örneği, bir resim veya PDF belgesinden Türkçe metin okuma işlemini gösterir.
// Import the IronOcr namespace
using IronOcr;
class OCRExample
{
static void Main()
{
// Create a new IronTesseract object
var Ocr = new IronTesseract();
// Set the OCR language to Turkish
Ocr.Language = OcrLanguage.Turkish;
// Define the input using a path to the image or PDF file
using (var Input = new OcrInput(@"images\Turkish.png"))
{
// Perform the OCR reading operation
var Result = Ocr.Read(Input);
// Retrieve the text from the OCR result
var AllText = Result.Text;
// Print the extracted text to the console
Console.WriteLine(AllText);
}
}
}
// Import the IronOcr namespace
using IronOcr;
class OCRExample
{
static void Main()
{
// Create a new IronTesseract object
var Ocr = new IronTesseract();
// Set the OCR language to Turkish
Ocr.Language = OcrLanguage.Turkish;
// Define the input using a path to the image or PDF file
using (var Input = new OcrInput(@"images\Turkish.png"))
{
// Perform the OCR reading operation
var Result = Ocr.Read(Input);
// Retrieve the text from the OCR result
var AllText = Result.Text;
// Print the extracted text to the console
Console.WriteLine(AllText);
}
}
}
' Import the IronOcr namespace
Imports IronOcr
Friend Class OCRExample
Shared Sub Main()
' Create a new IronTesseract object
Dim Ocr = New IronTesseract()
' Set the OCR language to Turkish
Ocr.Language = OcrLanguage.Turkish
' Define the input using a path to the image or PDF file
Using Input = New OcrInput("images\Turkish.png")
' Perform the OCR reading operation
Dim Result = Ocr.Read(Input)
' Retrieve the text from the OCR result
Dim AllText = Result.Text
' Print the extracted text to the console
Console.WriteLine(AllText)
End Using
End Sub
End Class
Bu kod, bir girdi resminden Türkçe metin okumak için IronOCR kullanarak bir OCR süreci kurar. Daha sonra çıkarılan metni konsola yazdırır.

