Turkish OCR in C# and .NET
Bu belgenin diğer versiyonları:
IronOCR, C# ile yazılmış bir yazılım bileşenidir ve .NET kodlayıcılarının, Türkçe dahil olmak üzere 126 dilde resimlerden ve PDF belgelerinden metin okumasına olanak tanır.
Tesseract'ın geliştirilmiş bir dalıdır, yalnızca .NET geliştiricileri için geliştirilmiştir ve hem hız hem de doğruluk bakımından diğer Tesseract motorlarını düzenli olarak geride bırakır.
IronOcr.Languages.Turkish'ın İçeriği
Bu paket, .NET için 46 OCR dili içerir:
- Türkçe
- TurkishBest
- TurkishFast
İndirme
Türkçe Dil Paketi [Türkçe]
Kurulum
Turkish OCR paketini projeye kurmak için önceki adımı kullanarak, .NET projenizde aşağıdaki NuGet paket yöneticisi komutunu kullanarak ilk adımı tamamlayın.
Install-Package IronOcr.Languages.Turkish
Kod Örneği
Bu C# kod örneği, Türkçe metni bir görüntüden veya PDF belgesinden okumanın nasıl yapılacağını 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 giriş görüntüsünden Türkçe metin okumak için IronOCR kullanan bir OCR süreci kurar. Daha sonra çıkarılan metni konsola yazdırır.

