Azerbaijani 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 Aserbaidschanisch, 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.
Inhalte von IronOcr.Languages.Azerbaijani
Dieses Paket enthält 138 OCR-Sprachen for .NET:
- Aserbaidschanisch
- AserbaidschanischBest
- AserbaidschanischFast
- AserbaidschanischKyrillisch
- AserbaidschanischKyrillischBest
- AserbaidschanischKyrillischFast
Download
Aserbaidschanisches Sprachpaket [azərbaycan dili]
Installation
Das erste, was wir tun müssen, ist, unser Aserbaidschanisch OCR-Paket in Ihr .NET-Projekt zu installieren.
Install-Package IronOcr.Languages.Azerbaijani
Beispielcode
Dieses C#-Codebeispiel liest aserbaidschanischen Text aus einem Bild oder PDF-Dokument.
// Ensure the IronOCR Azerbaijani language package is installed
// PM> Install-Package IronOcr.Languages.Azerbaijani
using IronOcr;
class Program
{
static void Main()
{
// Create a new instance of IronTesseract engine
var Ocr = new IronTesseract();
// Specify the language to be Azerbaijani
Ocr.Language = OcrLanguage.Azerbaijani;
// Provide the path to the image file containing Azerbaijani text
using (var Input = new OcrInput(@"images\Azerbaijani.png"))
{
// Process the image to extract text
var Result = Ocr.Read(Input);
// Extracted text is stored in Result.Text
var AllText = Result.Text;
// Output the extracted text
Console.WriteLine(AllText);
}
}
}
// Ensure the IronOCR Azerbaijani language package is installed
// PM> Install-Package IronOcr.Languages.Azerbaijani
using IronOcr;
class Program
{
static void Main()
{
// Create a new instance of IronTesseract engine
var Ocr = new IronTesseract();
// Specify the language to be Azerbaijani
Ocr.Language = OcrLanguage.Azerbaijani;
// Provide the path to the image file containing Azerbaijani text
using (var Input = new OcrInput(@"images\Azerbaijani.png"))
{
// Process the image to extract text
var Result = Ocr.Read(Input);
// Extracted text is stored in Result.Text
var AllText = Result.Text;
// Output the extracted text
Console.WriteLine(AllText);
}
}
}
Imports IronOcr
Module Program
Sub Main()
' Create a new instance of IronTesseract engine
Dim Ocr As New IronTesseract()
' Specify the language to be Azerbaijani
Ocr.Language = OcrLanguage.Azerbaijani
' Provide the path to the image file containing Azerbaijani text
Using Input As New OcrInput("images\Azerbaijani.png")
' Process the image to extract text
Dim Result = Ocr.Read(Input)
' Extracted text is stored in Result.Text
Dim AllText = Result.Text
' Output the extracted text
Console.WriteLine(AllText)
End Using
End Sub
End Module
In diesem Beispiel initialisieren wir das IronTesseract-Objekt und setzen die Sprache auf Aserbaidschanisch. Die Instanz OcrInput wird verwendet, um ein Bild aus dem angegebenen Dateipfad zu lesen. Die Methode Ocr.Read verarbeitet das Bild, um den Text zu extrahieren, der über die Eigenschaft Result.Text zugänglich ist. Dies ermöglicht eine einfache Ausgabe oder weitere Verarbeitung.

