Breton OCR in C# and .NET
IronOCR, C# yazılım bileşeni olarak, .NET kodlayıcılarının Bretanca da dahil olmak üzere 126 dilde görüntülerden ve PDF belgelerinden metin okumasını sağlar. Bu, .NET geliştiricileri için özel olarak oluşturulmuş Tesseract'ın gelişmiş bir çatısıdır ve hem hız hem de doğruluk açısından diğer Tesseract motorlarını düzenli olarak geride bırakır.
IronOcr.Languages.Breton İçeriği
Bu paket, .NET için 43 OCR dili içerir:
- Bretanca
- BretancaEnİyi
- BretancaHızlı
İndir
Bretanca Dil Paketi [brezhoneg]
Kurulum
Yapmamız gereken ilk şey, Bretanca OCR paketimizi .NET projenize yüklemektir.
Install-Package IronOcr.Languages.Breton
Kod Örneği
Bu C# kod örneği, bir Görüntü veya PDF belgesinden Bretanca 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 kütüphanesini kullanarak Bretanca bir metin resminde OCR yapmanın nasıl gerçekleştirileceğini gösterir.
IronTesseracttemel OCR işlevselliğini sağlar.OcrInput, Bretonca metin 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 metin konsola gönderilir.

