Breton OCR in C# and .NET
IronOCR, 126 dilde, Bretonca da dahil olmak üzere, .NET kodlayıcılarının görüntülerden ve PDF belgelerinden metin okumasına olanak tanıyan bir C# yazılım bileşenidir. Sadece .NET geliştiricileri için inşa edilen Tesseract'ın gelişmiş bir dalı olup, hem hız hem de doğruluk açısından diğer Tesseract motorlarını sık sık geride bırakır.
IronOcr.Languages.Breton içeriği
Bu paket, .NET için 43 OCR dilini içerir:
- Bretonca
- Bretoncaca En İyi
- Bretoncaca Hızlı
İndirme
Bretonca Dil Paketi [brezhoneg]
Kurulum
İlk yapmamız gereken, .NET projenize Bretonca OCR paketimizi yüklemektir.
Install-Package IronOcr.Languages.Breton
Kod Örneği
Bu C# kod örneği, bir görüntüden veya PDF belgesinden Bretonca metni okur.
// Import the IronOCR namespace
using IronOcr;
class Program
{
static void Main()
{
// Initialize the IronTesseract OCR engine
var Ocr = new IronTesseract();
// Set the OCR language to Breton
Ocr.Language = OcrLanguage.Breton;
// Read text from a Breton image or PDF document
using (var Input = new OcrInput(@"images\Breton.png"))
{
// Perform OCR on the input
var Result = Ocr.Read(Input);
// Extract text from the OCR result
var AllText = Result.Text;
// Output the extracted text
Console.WriteLine(AllText);
}
}
}
// Import the IronOCR namespace
using IronOcr;
class Program
{
static void Main()
{
// Initialize the IronTesseract OCR engine
var Ocr = new IronTesseract();
// Set the OCR language to Breton
Ocr.Language = OcrLanguage.Breton;
// Read text from a Breton image or PDF document
using (var Input = new OcrInput(@"images\Breton.png"))
{
// Perform OCR on the input
var Result = Ocr.Read(Input);
// Extract text from the OCR result
var AllText = Result.Text;
// Output the extracted text
Console.WriteLine(AllText);
}
}
}
' Import the IronOCR namespace
Imports IronOcr
Friend Class Program
Shared Sub Main()
' Initialize the IronTesseract OCR engine
Dim Ocr = New IronTesseract()
' Set the OCR language to Breton
Ocr.Language = OcrLanguage.Breton
' Read text from a Breton image or PDF document
Using Input = New OcrInput("images\Breton.png")
' Perform OCR on the input
Dim Result = Ocr.Read(Input)
' Extract text from the OCR result
Dim AllText = Result.Text
' Output the extracted text
Console.WriteLine(AllText)
End Using
End Sub
End Class
- Bu örnek, IronOCR kutuphanesini kullanarak Bretonca bir metin görüntüsünde OCR nasıl yapılacağını gösterir.
IronTesseract, temel OCR işlevselliğini sağlar.OcrInput, Breton metni içeren görüntünün yolu ile oluşturulur.Readyöntemi, giriş görüntüsünü işler ve metni çıkarır, ardından konsola çıktılanır.

