Latin OCR in C# and .NET
Bu belgenin diğer versiyonları:
IronOCR, Latin dahil olmak üzere 126 dildeki metinleri resimlerden ve PDF belgelerinden okutabilen 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.Latin İçeriği
Bu paket, .NET için 40 OCR dilini içerir:
- Latince
- LatinceBest
- LatinceFast
İndir
Latin Dil Paketi [latine]
Kurulum
İlk yapmamız gereken şey, Latin OCR paketimizi .NET projenize kurmaktır.
Kod Örneği
Bu C# kod örneği, bir resimden veya PDF belgesinden Latin metnini okur.
// Install the IronOcr.Languages.Latin package via NuGet
using IronOcr;
var Ocr = new IronTesseract();
Ocr.Language = OcrLanguage.Latin;
// Create an OCR input object by specifying the image or PDF file path
using (var Input = new OcrInput(@"images\Latin.png"))
{
// Perform OCR on the input
var Result = Ocr.Read(Input);
// Retrieve the recognized text
var AllText = Result.Text;
// Log or process the recognized text
}' Install the IronOcr.Languages.Latin package via NuGet
Imports IronOcr
Private Ocr = New IronTesseract()
Ocr.Language = OcrLanguage.Latin
' Create an OCR input object by specifying the image or PDF file path
Using Input = New OcrInput("images\Latin.png")
' Perform OCR on the input
Dim Result = Ocr.Read(Input)
' Retrieve the recognized text
Dim AllText = Result.Text
' Log or process the recognized text
End Using' Install the IronOcr.Languages.Latin package via NuGet
Imports IronOcr
Private Ocr = New IronTesseract()
Ocr.Language = OcrLanguage.Latin
' Create an OCR input object by specifying the image or PDF file path
Using Input = New OcrInput("images\Latin.png")
' Perform OCR on the input
Dim Result = Ocr.Read(Input)
' Retrieve the recognized text
Dim AllText = Result.Text
' Log or process the recognized text
End Using- Bu örnek,
IronTesseractnesnesini başlatmayı ve OCR dilini Latince olarak ayarlamayı gösterir. OcrInput, giriş dosyasını kapsar, bu durumda Latin metni içeren bir resim.Ocr.Readyöntemi girişi işler ve tanınan metni çıkarabileceğiniz birOcrResultnesnesi döndürür.
Curtis Chau, Bilgisayar Bilimleri alanında Lisans Derecesine (Carleton Üniversitesi) sahip ve Node.js, TypeScript, JavaScript ve React konularında uzmanlaşmış ön uç geliştirmeyle ilgileniyor. Sezgisel ve estetik açıdan hoş kullanıcı arayüzleri oluşturma tutkunu, Curtis modern çerçevelerle çalışmayı ve iyi yapılandırılmış, görsel olarak çekici kılavuzlar oluşturmayı seviyor.