Albanian OCR in C# and .NET
Bu belgenin diğer versiyonları:
IronOCR, .NET kodlayıcılarının, Arnavutça da dâhil olmak üzere 126 dilde, görüntülerden ve PDF belgelerinden metin okumasına olanak tanıyan bir C# yazılım bileşenidir. Tesseract'ın ileri düzey bir çatallamasıdır, yalnızca .NET geliştiricileri için oluşturulmuş olup hız ve doğruluk açısından diğer Tesseract motorlarını düzenli olarak geride bırakmaktadır.
IronOcr.Languages.Albanian İçeriği
Bu paket, .NET için 49 OCR dili içerir:
- Arnavutça
- ArnavutçaBest
- ArnavutçaFast
İndirme
Arnavutça Dil Paketi [gjuha shqipe]
Kurulum
Yapmamız gereken ilk şey, Arnavutça OCR paketimizi .NET projenize yüklemektir.
Install-Package IronOcr.Languages.Albanian
Kod Örneği
Bu C# kod örneği, bir resim veya PDF belgesinden Arnavutça metin okur.
// 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

