Albanian OCR in C# and .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 .NET-Entwicklern ermöglicht, Text aus Bildern und PDF-Dokumenten in 126 Sprachen, einschließlich Albanisch, zu lesen. Es ist eine erweiterte Abspaltung von Tesseract, die exklusiv für .NET-Entwickler entwickelt wurde und regelmäßig andere Tesseract-Engines sowohl in Bezug auf Geschwindigkeit als auch Genauigkeit übertrifft.

Inhalt von IronOcr.Languages.Albanian

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

  • Albanisch
  • AlbanischBest
  • AlbanischSchnell

Download

Albanisches Sprachpaket style='white-space:normal'>[gjuha shqipe]

Installation

Das Erste, was wir tun müssen, ist unser albanisches OCR-Paket in Ihr .NET-Projekt zu installieren.

Install-Package IronOCR.Languages.Albanian

Beispielcode

Dieses C#-Beispiel liest albanischen Text aus einem Bild oder PDF-Dokument.

// This example demonstrates how to use IronOCR to extract text from an image using the Albanian language pack.
using IronOcr;

var Ocr = new IronTesseract(); // Create a new instance of the IronTesseract engine.
Ocr.Language = OcrLanguage.Albanian; // Set the OCR language to Albanian.

using (var Input = new OcrInput(@"images\Albanian.png")) // Provide path to the image file.
{
    var Result = Ocr.Read(Input); // Perform OCR on the input image.
    var AllText = Result.Text;    // Extract the recognized text from the OCR result.
    // Optionally, use the extracted text for further processing.
}
// This example demonstrates how to use IronOCR to extract text from an image using the Albanian language pack.
using IronOcr;

var Ocr = new IronTesseract(); // Create a new instance of the IronTesseract engine.
Ocr.Language = OcrLanguage.Albanian; // Set the OCR language to Albanian.

using (var Input = new OcrInput(@"images\Albanian.png")) // Provide path to the image file.
{
    var Result = Ocr.Read(Input); // Perform OCR on the input image.
    var AllText = Result.Text;    // Extract the recognized text from the OCR result.
    // Optionally, use the extracted text for further processing.
}
' This example demonstrates how to use IronOCR to extract text from an image using the Albanian language pack.
Imports IronOcr

Private Ocr = New IronTesseract() ' Create a new instance of the IronTesseract engine.
Ocr.Language = OcrLanguage.Albanian ' Set the OCR language to Albanian.

Using Input = New OcrInput("images\Albanian.png") ' Provide path to the image file.
	Dim Result = Ocr.Read(Input) ' Perform OCR on the input image.
	Dim AllText = Result.Text ' Extract the recognized text from the OCR result.
	' Optionally, use the extracted text for further processing.
End Using
$vbLabelText   $csharpLabel