Faroese OCR in C# and .NET
IronOCR, .NET kodlayıcılarının Faroece dahil 126 dilde resimler ve PDF belgeleri üzerinden metin okumasını sağlayan bir C# yazılım bileşenidir.
Tesseract'ın, yalnızca .NET geliştiricileri için özel olarak oluşturulmuş gelişmiş bir dalıdır ve hız ve doğruluk açısından diğer Tesseract motorlarını düzenli olarak geride bırakır.
IronOcr.Languages.Faroese İçeriği
Bu paket, .NET için 46 OCR dilini içerir:
- Faroece
- FaroeceBest
- FaroeceFast
İndir
Faroece Dil Paketi [føroyskt]
Kurulum
Yapılması gereken ilk şey, .NET projenize Faroece OCR paketini yüklemektir:
Install-Package IronOcr.Languages.Faroese
Kod Örneği
Bu C# kod örneği, bir resim veya PDF belgesinden Faroece metnini okur.
// 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: Bu nesne, temel OCR motoru olarak işlev görür.Ocr.Language: OCR'yi Faroe diline ayarlar. Faroece dil paketinin yüklü olduğundan emin olun.OcrInput: OCR için giriş dosyasını (görüntü veya PDF) sağlar.Ocr.Read: Girişi işler ve bir OCR sonucu üretir.Result.Text: OCR işleminden metin bilgilerini çıkarır.

