Lithuanian OCR in C# and .NET
Andere Versionen dieses Dokuments:
IronOCR ist eine C#-Softwarekomponente, die es .NET-Entwicklern ermöglicht, in 126 Sprachen, einschließlich Litauisch, Text aus Bildern und PDF-Dokumenten zu lesen.
Es ist eine erweiterte Abspaltung von Tesseract, die exklusiv for .NET-Entwickler entwickelt wurde und regelmäßig andere Tesseract-Engines sowohl in Bezug auf Geschwindigkeit als auch Genauigkeit übertrifft.
Inhalt von IronOcr.Languages.Lithuanian
Dieses Paket enthält 55 OCR-Sprachen for .NET:
- Litauisch
- LithuanianBest
- LithuanianFast
Download
Litauisches Sprachpaket [lietuvių kalba]
Installation
Als erstes müssen wir unser litauisches OCR-Paket in Ihr .NET-Projekt installieren.
Install-Package IronOcr.Languages.Lithuanian
Beispielcode
Dieses C#-Beispiel liest litauischen Text aus einem Bild oder PDF-Dokument.
// Include the IronOcr namespace to use OCR features
using IronOcr;
class Program
{
static void Main(string[] args)
{
// Create a new instance of the IronTesseract class
var Ocr = new IronTesseract();
// Set the OCR language to Lithuanian
Ocr.Language = OcrLanguage.Lithuanian;
// Use a using statement to ensure that the OcrInput object is disposed of properly
using (var Input = new OcrInput(@"images\Lithuanian.png"))
{
// Perform OCR on the input image and store the result
var Result = Ocr.Read(Input);
// Extract the text from the OCR result
var AllText = Result.Text;
// For demonstration purposes, output the extracted text to the console
Console.WriteLine(AllText);
}
}
}
// Include the IronOcr namespace to use OCR features
using IronOcr;
class Program
{
static void Main(string[] args)
{
// Create a new instance of the IronTesseract class
var Ocr = new IronTesseract();
// Set the OCR language to Lithuanian
Ocr.Language = OcrLanguage.Lithuanian;
// Use a using statement to ensure that the OcrInput object is disposed of properly
using (var Input = new OcrInput(@"images\Lithuanian.png"))
{
// Perform OCR on the input image and store the result
var Result = Ocr.Read(Input);
// Extract the text from the OCR result
var AllText = Result.Text;
// For demonstration purposes, output the extracted text to the console
Console.WriteLine(AllText);
}
}
}
' Include the IronOcr namespace to use OCR features
Imports IronOcr
Friend Class Program
Shared Sub Main(ByVal args() As String)
' Create a new instance of the IronTesseract class
Dim Ocr = New IronTesseract()
' Set the OCR language to Lithuanian
Ocr.Language = OcrLanguage.Lithuanian
' Use a using statement to ensure that the OcrInput object is disposed of properly
Using Input = New OcrInput("images\Lithuanian.png")
' Perform OCR on the input image and store the result
Dim Result = Ocr.Read(Input)
' Extract the text from the OCR result
Dim AllText = Result.Text
' For demonstration purposes, output the extracted text to the console
Console.WriteLine(AllText)
End Using
End Sub
End Class

