Western Frisian OCR in C# and .NET
IronOCR ist eine C#-Softwarekomponente, die .NET-Codern ermöglicht, Text aus Bildern und PDF-Dokumenten in 126 Sprachen, einschließlich Westfriesisch, 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.WesternFrisian
Dieses Paket enthält 67 OCR-Sprachen for .NET:
- Westfriesisch
- WestfriesischBest
- WestfriesischSchnell
Download
Westfriesisches Sprachpaket [Frysk]
Installation
Das erste, was wir tun müssen, ist, unser Westfriesisches OCR-Paket in Ihrem .NET-Projekt zu installieren.
Install-Package IronOcr.Languages.WesternFrisian
Beispielcode
Dieses C#-Codebeispiel liest westfriesischen Text aus einem Bild oder PDF-Dokument.
// Import the IronOcr library
using IronOcr;
class WesternFrisianOcrExample
{
static void Main()
{
// Create a new instance of IronTesseract, which is the OCR engine
var Ocr = new IronTesseract();
// Set the language to Western Frisian
Ocr.Language = OcrLanguage.WesternFrisian;
// Perform OCR on a given image
using (var Input = new OcrInput(@"images\WesternFrisian.png"))
{
// Read the input image and store the result
var Result = Ocr.Read(Input);
// Extract the text from the result
string AllText = Result.Text;
// Output the recognized text to the console
System.Console.WriteLine(AllText);
}
}
}
// Import the IronOcr library
using IronOcr;
class WesternFrisianOcrExample
{
static void Main()
{
// Create a new instance of IronTesseract, which is the OCR engine
var Ocr = new IronTesseract();
// Set the language to Western Frisian
Ocr.Language = OcrLanguage.WesternFrisian;
// Perform OCR on a given image
using (var Input = new OcrInput(@"images\WesternFrisian.png"))
{
// Read the input image and store the result
var Result = Ocr.Read(Input);
// Extract the text from the result
string AllText = Result.Text;
// Output the recognized text to the console
System.Console.WriteLine(AllText);
}
}
}
' Import the IronOcr library
Imports IronOcr
Friend Class WesternFrisianOcrExample
Shared Sub Main()
' Create a new instance of IronTesseract, which is the OCR engine
Dim Ocr = New IronTesseract()
' Set the language to Western Frisian
Ocr.Language = OcrLanguage.WesternFrisian
' Perform OCR on a given image
Using Input = New OcrInput("images\WesternFrisian.png")
' Read the input image and store the result
Dim Result = Ocr.Read(Input)
' Extract the text from the result
Dim AllText As String = Result.Text
' Output the recognized text to the console
System.Console.WriteLine(AllText)
End Using
End Sub
End Class
In diesem Beispiel:
- Initialisiere die OCR-Engine
IronTesseract. - Stellen Sie den OCR-Prozess so ein, dass er westfriesischen Text mithilfe der Sprachoption
OcrLanguage.WesternFrisianerkennt. - Lesen Sie eine Bilddatei, die sich unter dem Pfad
images\WesternFrisian.pngbefindet. - Speichere den erkannten Text in
AllTextund gib ihn in der Konsole aus.

