Turkish OCR in C# and .NET
Andere Versionen dieses Dokuments:
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 for .NET:
- Türkisch
- TürkischBest
- TürkischFast
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.
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
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 ClassDieser 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.

Curtis Chau hat einen Bachelor-Abschluss in Informatik von der Carleton University und ist spezialisiert auf Frontend-Entwicklung mit Expertise in Node.js, TypeScript, JavaScript und React. Leidenschaftlich widmet er sich der Erstellung intuitiver und ästhetisch ansprechender Benutzerschnittstellen und arbeitet gerne mit modernen Frameworks sowie der Erstellung gut strukturierter, optisch ansprechender Handbücher.