Tajik OCR in C# and .NET
Andere Versionen dieses Dokuments:
IronOCR ist eine C#-Softwarekomponente, die .NET-Entwicklern ermöglicht, Text aus Bildern und PDF-Dokumenten in 126 Sprachen, einschließlich Tadschikisch, zu lesen.
Es ist eine erweiterte Abspaltung von Tesseract, die exklusiv for .NET-Entwickler entwickelt wurde und regelmäßig andere Tesseract-Engines sowohl in Bezug auf Geschwindigkeit als auch Genauigkeit übertrifft.
Inhalt von IronOcr.Languages.Tajik
Dieses Paket enthält 40 OCR-Sprachen for .NET:
- Tadschikisch
- TajikBest
- TajikFast
Download
Tadschikisches Sprachpaket [тоҷикӣ]
Installation
Das Erste, was wir tun müssen, ist unser Tadschikisch-OCR-Paket in Ihrem .NET-Projekt zu installieren.
Install-Package IronOcr.Languages.Tajik
Beispielcode
Dieses C#-Codebeispiel liest tadschikischen Text aus einem Bild oder PDF-Dokument.
// Import the IronOcr namespace to use its functionality
using IronOcr;
class Program
{
static void Main()
{
// Create an instance of IronTesseract engine
var Ocr = new IronTesseract();
// Specify the language to use for OCR as Tajik
Ocr.Language = OcrLanguage.Tajik;
// Load the image file where the OCR is to be performed
using (var Input = new OcrInput(@"images\Tajik.png"))
{
// Perform OCR on the input image
var Result = Ocr.Read(Input);
// Extract the text from the OCR result
var AllText = Result.Text;
// Output the text to the console
Console.WriteLine(AllText);
}
}
}
// Import the IronOcr namespace to use its functionality
using IronOcr;
class Program
{
static void Main()
{
// Create an instance of IronTesseract engine
var Ocr = new IronTesseract();
// Specify the language to use for OCR as Tajik
Ocr.Language = OcrLanguage.Tajik;
// Load the image file where the OCR is to be performed
using (var Input = new OcrInput(@"images\Tajik.png"))
{
// Perform OCR on the input image
var Result = Ocr.Read(Input);
// Extract the text from the OCR result
var AllText = Result.Text;
// Output the text to the console
Console.WriteLine(AllText);
}
}
}
' Import the IronOcr namespace to use its functionality
Imports IronOcr
Friend Class Program
Shared Sub Main()
' Create an instance of IronTesseract engine
Dim Ocr = New IronTesseract()
' Specify the language to use for OCR as Tajik
Ocr.Language = OcrLanguage.Tajik
' Load the image file where the OCR is to be performed
Using Input = New OcrInput("images\Tajik.png")
' Perform OCR on the input image
Dim Result = Ocr.Read(Input)
' Extract the text from the OCR result
Dim AllText = Result.Text
' Output the text to the console
Console.WriteLine(AllText)
End Using
End Sub
End Class
- Erstellen Sie eine Instanz von
IronTesseract, um die OCR-Funktionalitäten zu nutzen. - Setzen Sie die Sprach-Eigenschaft auf
OcrLanguage.Tajik, um anzugeben, dass die OCR-Verarbeitung in tadschikischer Sprache erfolgen soll. - Laden Sie das Eingabebild, aus dem der Text extrahiert werden soll.
Ocr.ReadDie Methode verarbeitet das Bild und gibt das Ergebnis mit dem extrahierten Text zurück.- Greifen Sie auf die
Text-Eigenschaft des Ergebnisses zu, um den gesamten erkannten Text im Bild zu erhalten.

