Faroese OCR in C# and .NET
IronOCR ist eine C#-Software-Komponente, die .NET-Entwicklern ermöglicht, Text aus Bildern und PDF-Dokumenten in 126 Sprachen, einschließlich Färöisch, zu lesen.
Es ist eine fortschrittliche Abspaltung von Tesseract, die ausschließlich for .NET-Entwickler gebaut wurde und regelmäßig andere Tesseract-Engines sowohl in Geschwindigkeit als auch Genauigkeit übertrifft.
Inhalt von IronOcr.Languages.Faroese
Dieses Paket enthält 46 OCR-Sprachen for .NET:
- Färöisch
- FäröischBest
- FäröischSchnell
Download
Färöisch Sprachpaket [føroyskt]
Installation
Das erste, was zu tun ist, ist das Färöische OCR-Paket in Ihr .NET-Projekt zu installieren:
Install-Package IronOcr.Languages.Faroese
Beispielcode
Dieses C# Code-Beispiel liest Färöisch-Text aus einem Bild oder PDF-Dokument.
// Import the IronOcr namespace
using IronOcr;
class Program
{
static void Main()
{
// Create a new instance of IronTesseract
var Ocr = new IronTesseract();
// Specify the language to use for OCR
// In this case, we're using Faroese
Ocr.Language = OcrLanguage.Faroese;
// Use a using statement for automatic resource management
using (var Input = new OcrInput(@"images\Faroese.png"))
{
// Perform OCR on the input image
var Result = Ocr.Read(Input);
// Extract the recognized text
var AllText = Result.Text;
// Print the extracted text to console
Console.WriteLine(AllText);
}
}
}
// Import the IronOcr namespace
using IronOcr;
class Program
{
static void Main()
{
// Create a new instance of IronTesseract
var Ocr = new IronTesseract();
// Specify the language to use for OCR
// In this case, we're using Faroese
Ocr.Language = OcrLanguage.Faroese;
// Use a using statement for automatic resource management
using (var Input = new OcrInput(@"images\Faroese.png"))
{
// Perform OCR on the input image
var Result = Ocr.Read(Input);
// Extract the recognized text
var AllText = Result.Text;
// Print the extracted text to console
Console.WriteLine(AllText);
}
}
}
' Import the IronOcr namespace
Imports IronOcr
Friend Class Program
Shared Sub Main()
' Create a new instance of IronTesseract
Dim Ocr = New IronTesseract()
' Specify the language to use for OCR
' In this case, we're using Faroese
Ocr.Language = OcrLanguage.Faroese
' Use a using statement for automatic resource management
Using Input = New OcrInput("images\Faroese.png")
' Perform OCR on the input image
Dim Result = Ocr.Read(Input)
' Extract the recognized text
Dim AllText = Result.Text
' Print the extracted text to console
Console.WriteLine(AllText)
End Using
End Sub
End Class
IronTesseract: Dieses Objekt dient als Kern-OCR-Engine.Ocr.Language: Stellt die OCR auf die färöische Sprache ein. Stellen Sie sicher, dass das Färöische Sprachpaket installiert ist.OcrInput: Stellt die Eingabedatei (Bild oder PDF) für die OCR bereit.Ocr.Read: Verarbeitet die Eingabe und generiert ein OCR-Ergebnis.Result.Text: Extrahiert die Textinformationen aus der OCR-Operation.

