Mongolian OCR in C# and .NET
Bu belgenin diğer versiyonları:
IronOCR, .NET kodlayıcılarının 126 dilde, Moğolca dahil olmak üzere, resimlerden ve PDF belgelerinden metin okumasını sağlayan 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.Mongolian İçeriği
Bu paket, .NET için 52 OCR dilini içerir:
- Moğolca
- MoğolcaEn iyi
- MoğolcaHızlı
İndir
Moğolca Dil Paketi [монгол]
Kurulum
Moğolca OCR paketini .NET projenize yüklemek ilk adımdır.
Install-Package IronOcr.Languages.Mongolian
Kod Örneği
Bu C# kod örneği, bir resim veya PDF belgesinden Moğolca metni okur.
using IronOcr;
class Program
{
static void Main()
{
// Create a new instance of IronTesseract
var Ocr = new IronTesseract();
// Set the language to Mongolian
Ocr.Language = OcrLanguage.Mongolian;
// Define the input as an image located in the "images" directory
using (var Input = new OcrInput(@"images\Mongolian.png"))
{
// Perform OCR on the input image
var Result = Ocr.Read(Input);
// Extract all recognized text
var AllText = Result.Text;
// Output the recognized text to the console
Console.WriteLine(AllText);
}
}
}
using IronOcr;
class Program
{
static void Main()
{
// Create a new instance of IronTesseract
var Ocr = new IronTesseract();
// Set the language to Mongolian
Ocr.Language = OcrLanguage.Mongolian;
// Define the input as an image located in the "images" directory
using (var Input = new OcrInput(@"images\Mongolian.png"))
{
// Perform OCR on the input image
var Result = Ocr.Read(Input);
// Extract all recognized text
var AllText = Result.Text;
// Output the recognized text to the console
Console.WriteLine(AllText);
}
}
}
Imports IronOcr
Friend Class Program
Shared Sub Main()
' Create a new instance of IronTesseract
Dim Ocr = New IronTesseract()
' Set the language to Mongolian
Ocr.Language = OcrLanguage.Mongolian
' Define the input as an image located in the "images" directory
Using Input = New OcrInput("images\Mongolian.png")
' Perform OCR on the input image
Dim Result = Ocr.Read(Input)
' Extract all recognized text
Dim AllText = Result.Text
' Output the recognized text to the console
Console.WriteLine(AllText)
End Using
End Sub
End Class
Bu örnek, bir Moğolca metin görüntüsünde Optik Karakter Tanıma yapmak için IronOCR'nin nasıl kullanılacağını gösterir. OCR motoru başlatılır, dil ayarlanır ve giriş görüntüsü işlenerek tanınan metin geri alınır ve gösterilir.

