Belarusian OCR in C# and .NET
Bu belgenin diğer versiyonları:
IronOCR, C# yazılım bileşeni olarak, .NET kodlayıcılarının Belarusça da dahil olmak üzere 126 dilde görüntülerden ve PDF belgelerinden metin okumasını sağlar.
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.Belarusian İçeriği
Bu paket, .NET için 55 OCR dili içerir:
- Belarusça
- BelarusçaEn iyi
- BelarusçaFast
İndir
Belarusça Dil Paketi [беларуская мова]
Kurulum
Yapmamız gereken ilk şey, Belarusça OCR paketimizi .NET projenize yüklemektir.
Kod Örneği
Bu C# kod örneği, bir Görüntü veya PDF belgesinden Belarusça metni okur.
// Import the IronOcr namespace to access OCR functionalities
using IronOcr;
class BelarusianOcrExample
{
static void Main()
{
// Initialize the IronTesseract OCR engine
var Ocr = new IronTesseract();
// Set the language to Belarusian for optimal recognition results
Ocr.Language = OcrLanguage.Belarusian;
// Define the input source: Image or PDF from a path
using (var Input = new OcrInput(@"images\Belarusian.png"))
{
// Perform OCR to read the text
var Result = Ocr.Read(Input);
// Extract the recognized text
var AllText = Result.Text;
// Output the recognized text to the console
System.Console.WriteLine(AllText);
}
}
}' Import the IronOcr namespace to access OCR functionalities
Imports IronOcr
Class BelarusianOcrExample
Shared Sub Main()
' Initialize the IronTesseract OCR engine
Dim Ocr As New IronTesseract()
' Set the language to Belarusian for optimal recognition results
Ocr.Language = OcrLanguage.Belarusian
' Define the input source: Image or PDF from a path
Using Input As New OcrInput("images\Belarusian.png")
' Perform OCR to read the text
Dim Result = Ocr.Read(Input)
' Extract the recognized text
Dim AllText = Result.Text
' Output the recognized text to the console
System.Console.WriteLine(AllText)
End Using
End Sub
End Class
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.