Basque OCR in C# and .NET
Andere Versionen dieses Dokuments:
IronOCR ist eine C#-Softwarekomponente, die .NET-Programmierern ermöglicht, Text aus Bildern und PDF-Dokumenten in 126 Sprachen, einschließlich Baskisch, zu lesen.
Es ist eine fortgeschrittene Abzweigung von Tesseract, die exklusiv for .NET-Entwickler entwickelt wurde und regelmäßig andere Tesseract-Engines sowohl in Geschwindigkeit als auch in Genauigkeit übertrifft.
Inhalte von IronOcr.Languages.Basque
Dieses Paket enthält 43 OCR-Sprachen for .NET:
- Baskisch
- BaskischBest
- BaskischSchnell
Download
Baskisches Sprachpaket [euskara]
Installation
Das erste, was wir tun müssen, ist unser Baskische OCR-Paket in Ihr .NET-Projekt zu installieren.
Install-Package IronOcr.Languages.Basque
Beispielcode
Dieses C#-Codebeispiel liest baskischen Text aus einem Bild oder PDF-Dokument.
// Import the IronOcr namespace
using IronOcr;
class BasqueOCRExample
{
static void Main()
{
// Create a new instance of IronTesseract
var Ocr = new IronTesseract();
// Set the language to Basque
Ocr.Language = OcrLanguage.Basque;
// Read the text from a Basque image or PDF
using (var Input = new OcrInput(@"images\Basque.png"))
{
// Perform OCR to get the result
var Result = Ocr.Read(Input);
// Extract all text from the OCR result
var AllText = Result.Text;
// Output the extracted text
System.Console.WriteLine(AllText);
}
}
}
// Import the IronOcr namespace
using IronOcr;
class BasqueOCRExample
{
static void Main()
{
// Create a new instance of IronTesseract
var Ocr = new IronTesseract();
// Set the language to Basque
Ocr.Language = OcrLanguage.Basque;
// Read the text from a Basque image or PDF
using (var Input = new OcrInput(@"images\Basque.png"))
{
// Perform OCR to get the result
var Result = Ocr.Read(Input);
// Extract all text from the OCR result
var AllText = Result.Text;
// Output the extracted text
System.Console.WriteLine(AllText);
}
}
}
' Import the IronOcr namespace
Imports IronOcr
Friend Class BasqueOCRExample
Shared Sub Main()
' Create a new instance of IronTesseract
Dim Ocr = New IronTesseract()
' Set the language to Basque
Ocr.Language = OcrLanguage.Basque
' Read the text from a Basque image or PDF
Using Input = New OcrInput("images\Basque.png")
' Perform OCR to get the result
Dim Result = Ocr.Read(Input)
' Extract all text from the OCR result
Dim AllText = Result.Text
' Output the extracted text
System.Console.WriteLine(AllText)
End Using
End Sub
End Class
Dieser Code richtet eine OCR-Engine mit IronOCR speziell für die baskische Sprache ein. Es lädt ein Bild (oder den Pfad zu einem PDF), um OCR durchzuführen und alle Textinhalte zu extrahieren, die dann auf der Konsole ausgegeben werden.

