Türkische OCR in C# und .NET

This article was translated from English: Does it need improvement?
Translated
View the article in English
Other versions of this document:

IronOCR ist eine C# Softwarekomponente, die es .NET Entwicklern ermöglicht, Text aus Bildern und PDF-Dokumenten in 126 Sprachen, einschließlich Türkisch, zu lesen.

Es ist eine fortschrittliche Abspaltung von Tesseract, die ausschließlich für .NET-Entwickler gebaut wurde und regelmäßig andere Tesseract-Engines sowohl in Geschwindigkeit als auch Genauigkeit übertrifft.

Inhalt von IronOcr.Languages.Turkish

Dieses Paket enthält 46 OCR-Sprachen für .NET:

  • Türkisch
  • TurkishBest
  • TurkishFast

Download

Türkisches Sprachpaket [Türkçe]

Installation

Der erste Schritt ist die Installation des Türkisch OCR-Pakets in deinem .NET-Projekt mit dem folgenden NuGet-Paketmanager-Befehl.

Install-Package IronOCR.Languages.Turkish

Beispielcode

Dieses C# Beispiel demonstriert, wie man Türkischen Text aus einem Bild oder PDF-Dokument liest.

// 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
$vbLabelText   $csharpLabel

Dieser Code richtet einen OCR-Prozess mit IronOCR ein, um Türkischen Text von einem Eingabebild zu lesen. Es druckt dann den extrahierten Text in die Konsole.