Albanian OCR in C# and .NET
Autres versions de ce document :
IronOCR est un composant logiciel C# permettant aux développeurs .NET de lire du texte à partir d'images et de documents PDF dans 126 langues, dont l'albanais. Il s'agit d'une version avancée de Tesseract, conçue exclusivement pour les développeurs .NET et qui surpasse régulièrement les autres moteurs Tesseract en termes de vitesse et de précision.
Contenu de IronOcr.Languages.Albanais
Ce package contient 49 langues OCR for .NET :
- Albanais
- Meilleur albanais
- AlbanaisFast
Télécharger
Pack de langue albanaise [langue albanaise]
Installation
La première chose à faire est d'installer notre package OCR albanais sur votre projet .NET.
Install-Package IronOcr.Languages.Albanian
Exemple de code
Cet exemple de code C# lit du texte albanais à partir d'une image ou d'un document 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

