Albanian OCR in C# and .NET

This article was translated from English: Does it need improvement?
Translated
View the article in English
本文檔的其他版本:

內什基普 新增 125 種 OCR 語言

IronOCR是一個 C# 軟體元件,允許.NET設計師從圖像和 PDF 文件中讀取 126 種語言(包括阿爾巴尼亞語)的文字。 它是 Tesseract 的一個高級分支,專為.NET開發人員構建,在速度和準確性方面通常優於其他 Tesseract 引擎。

IronOCR的內容。語言。阿爾巴尼亞語

此軟體包包含 49 種適用於.NET的 OCR 語言:

  • 阿爾巴尼亞語
  • 阿爾巴尼亞最佳
  • 阿爾巴尼亞快報

下載

阿爾巴尼亞語語言包[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.
}
$vbLabelText   $csharpLabel