Occitan OCR in C# and .NET
IronOCR, .NET geliştiricilerinin Oktan dahil olmak üzere 126 dildeki görüntü ve PDF belgelerinden metin okumalarına olanak tanıyan 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.Occitan İçeriği
Bu paket, .NET için 46 OCR dilini içerir:
- Oktan
- OktanBest
- OktanFast
İndir
Oktan Dil Paketi
Kurulum
Yapmamız gereken ilk şey, .NET projenize Oktan OCR paketini yüklemek.
Install-Package IronOcr.Languages.Occitan
Kod Örneği
Bu C# kod örneği, bir görüntüden veya PDF belgesinden Oksitanca metni okur.
// Importing the IronOCR namespace
using IronOcr;
class Program
{
static void Main()
{
// Create a new instance of the OCR engine for Occitan language
var Ocr = new IronTesseract();
Ocr.Language = OcrLanguage.Occitan;
// Use a using block for proper disposal of resources
using (var Input = new OcrInput(@"images\Occitan.png"))
{
// Perform OCR on the input image
var Result = Ocr.Read(Input);
// Retrieve the recognized text
var AllText = Result.Text;
// Output the recognized text to the console
Console.WriteLine(AllText);
}
}
}
// Importing the IronOCR namespace
using IronOcr;
class Program
{
static void Main()
{
// Create a new instance of the OCR engine for Occitan language
var Ocr = new IronTesseract();
Ocr.Language = OcrLanguage.Occitan;
// Use a using block for proper disposal of resources
using (var Input = new OcrInput(@"images\Occitan.png"))
{
// Perform OCR on the input image
var Result = Ocr.Read(Input);
// Retrieve the recognized text
var AllText = Result.Text;
// Output the recognized text to the console
Console.WriteLine(AllText);
}
}
}
' Importing the IronOCR namespace
Imports IronOcr
Friend Class Program
Shared Sub Main()
' Create a new instance of the OCR engine for Occitan language
Dim Ocr = New IronTesseract()
Ocr.Language = OcrLanguage.Occitan
' Use a using block for proper disposal of resources
Using Input = New OcrInput("images\Occitan.png")
' Perform OCR on the input image
Dim Result = Ocr.Read(Input)
' Retrieve the recognized text
Dim AllText = Result.Text
' Output the recognized text to the console
Console.WriteLine(AllText)
End Using
End Sub
End Class
Bu örnek, Oktan metni içeren bir görüntü dosyasından metin okumak için IronOCR kütüphanesini nasıl yapılandıracağınızı göstermektedir. OCR dilini Oktan olarak ayarlar ve görüntüyü işler, tanınan metni çıktılar.

