OCR albanés en C# y .NET

This article was translated from English: Does it need improvement?
Translated
View the article in English
Other versions of this document:

IronOCR es un componente de software C# que permite a los programadores de .NET leer texto de imágenes y documentos PDF en 126 idiomas, incluido el albanés. Es una rama avanzada de Tesseract, construida exclusivamente para desarrolladores de .NET y supera regularmente a otros motores de Tesseract tanto en velocidad como en precisión.

Contenido de IronOcr.Languages.Albanian

Este paquete contiene 49 idiomas OCR para .NET:

  • Albanés
  • AlbanésMejor
  • AlbanésRápido

Descargar

Paquete de idioma albanés [gjuha shqipe]

Instalación

Lo primero que tenemos que hacer es instalar nuestro paquete OCR de Albanés en su proyecto .NET.

Install-Package IronOCR.Languages.Albanian

Ejemplo de código

Este ejemplo de código en C# lee texto en albanés de una imagen o documento 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