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 是一個 C# 軟體元件,讓 .NET 開發人員能夠從 126 種語言的影像和 PDF 文檔中讀取文字,包括阿爾巴尼亞語。 它是一個專為 .NET 開發者設計的 Tesseract 高級分支,在速度和準確性方面經常優於其他 Tesseract 引擎。

IronOcr.Languages.Albanian 的內容

該套件包含 49 種 .NET 的 OCR 語言:

  • 阿爾巴尼亞語
  • AlbanianBest
  • AlbanianFast

下載

阿爾巴尼亞語語言包 style='white-space:normal'>[gjuha shqipe]

安裝

我們首先要做的是將我們的 阿爾巴尼亞語 OCR 套件安裝到您的 .NET 專案中。

Install-Package IronOCR.Languages.Albanian

代碼示例

這個 C# 代碼範例從圖片或 PDF 文件中讀取阿爾巴尼亞文字。

// 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