Financial OCR in C# and .NET
IronOCR, .NET kodlayıcılarının görüntülerden ve PDF belgelerinden, Finansal dahil 126 dilde metin okumasına olanak tanıyan bir C# yazılım bileşenidir.
Tesseract'ın ileri düzey bir çatallamasıdır, yalnızca .NET geliştiricileri için oluşturulmuş olup hız ve doğruluk açısından diğer Tesseract motorlarını düzenli olarak geride bırakmaktadır.
IronOcr.Languages.Financial İçeriği
Bu paket .NET için 16 OCR dili içerir:
- Finansal
İndirme
Finansal Dil Paketi [Finansal]
Kurulum
Yapmamız gereken ilk şey, Finansal OCR paketimiz .NET projenize yüklemektir.
Install-Package IronOcr.Languages.Financial
Kod Örneği
Bu C# kod örneği, görüntü veya PDF belgesinden finansal metni okur.
// Import the IronOcr namespace
using IronOcr;
// Instantiate the IronTesseract OCR engine
var Ocr = new IronTesseract();
// Set the OCR language to Financial
Ocr.Language = OcrLanguage.Financial;
// Create an OCR input object, specifying the path to the image or PDF
using (var Input = new OcrInput(@"images\Financial.png"))
{
// Perform OCR to read text from the input
var Result = Ocr.Read(Input);
// Retrieve the extracted text
var AllText = Result.Text;
}
// Import the IronOcr namespace
using IronOcr;
// Instantiate the IronTesseract OCR engine
var Ocr = new IronTesseract();
// Set the OCR language to Financial
Ocr.Language = OcrLanguage.Financial;
// Create an OCR input object, specifying the path to the image or PDF
using (var Input = new OcrInput(@"images\Financial.png"))
{
// Perform OCR to read text from the input
var Result = Ocr.Read(Input);
// Retrieve the extracted text
var AllText = Result.Text;
}
' Import the IronOcr namespace
Imports IronOcr
' Instantiate the IronTesseract OCR engine
Private Ocr = New IronTesseract()
' Set the OCR language to Financial
Ocr.Language = OcrLanguage.Financial
' Create an OCR input object, specifying the path to the image or PDF
Using Input = New OcrInput("images\Financial.png")
' Perform OCR to read text from the input
Dim Result = Ocr.Read(Input)
' Retrieve the extracted text
Dim AllText = Result.Text
End Using
Açıklama:
- IronOcr Kullanımı: Bu ad alanı, OCR süreci için gerekli tüm sınıfları içerir.
- IronTesseract Sınıfı: OCR görevlerini etkinleştiren ana sınıftır.
- Dil Ayarı: Dili
Financialolarak ayarlamak, OCR motorunun finansal terminolojiyi tanımasını sağlar. - OcrInput Sınıfı: İşlenecek görüntü veya PDF dosyasını belirleyen bir dosya yolu alır.
- Okuma Yöntemi:
Ocr.Read(Input)üzerinde çalıştırıldığında, sağlanan giriş ve dil ayarlarına göre metni almak için görüntüyü işleyer. - Sonuç.Metin: Görüntüden veya PDF'den tanınan metni saklar.

