Faroese OCR in C# and .NET
IronOCR to komponent oprogramowania C#, umożliwiający programistom .NET odczytywanie tekstu z obrazów i dokumentów PDF w 126 językach, w tym w farskim.
Jest to zaawansowany fork Tesseract, stworzony wyłącznie dla programistów .NET i regularnie przewyższa inne silniki Tesseract zarówno pod względem szybkości, jak i dokładności.
Zawartość IronOcr.Languages.Faroese
Ten pakiet zawiera 46 języków OCR dla .NET:
- Farski
- FarskiBest
- FarskiFast
Pobieranie
Faroese Language Pack [føroyskt]
Instalacja
Pierwszym krokiem jest zainstalowanie pakietu Farski OCR do projektu .NET:
Install-Package IronOcr.Languages.Faroese
Przyklad kodu
Ten przykład kodu C# odczytuje tekst w języku farskim z obrazu lub dokumentu PDF.
// 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: Ten obiekt pełni rolę głównego silnika OCR.Ocr.Language: Ustawia OCR na język farski. Upewnij się, że zainstalowany jest pakiet językowy farski.OcrInput: Dostarcza plik wejściowy (obraz lub PDF) do OCR.Ocr.Read: Przetwarza dane wejściowe i generuje wynik OCR.Result.Text: Wyodrębnia informacje tekstowe z operacji OCR.

