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çeBest
- 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.
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
Imports IronOcr
Class OCRExample
Shared Sub Main()
' Create a new IronTesseract object
Dim Ocr As 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 As 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 ClassBu 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.

Curtis Chau, Bilgisayar Bilimleri alanında Lisans Derecesine (Carleton Üniversitesi) sahip ve Node.js, TypeScript, JavaScript ve React konularında uzmanlaşmış ön uç geliştirmeyle ilgileniyor. Sezgisel ve estetik açıdan hoş kullanıcı arayüzleri oluşturma tutkunu, Curtis modern çerçevelerle çalışmayı ve iyi yapılandırılmış, görsel olarak çekici kılavuzlar oluşturmayı seviyor.