Mongolian OCR in C# and .NET
Bu belgenin diğer versiyonları:
IronOCR, .NET yazılımcılarının 126 dilde, Moğolca da dahil olmak üzere, görüntüler ve PDF belgelerinden metin okumasına izin veren bir C# yazılım bileşenidir.
Tesseract'ın geliştirilmiş bir dalıdır, yalnızca .NET geliştiricileri için geliştirilmiştir ve hem hız hem de doğruluk bakımı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 dili içerir:
- Moğolca
- Moğolca En İyi
- Moğolca Hızlı
İndirme
Moğolca Dil Paketi [монгол]
Kurulum
İlk adım, .NET projenize Moğolca OCR paketini kurmaktır.
Install-Package IronOcr.Languages.Mongolian
Kod Örneği
Bu C# kod örneği, Moğolca metni bir görüntüden veya PDF belgesinden 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 işlemini gerçekleştirmek için IronOCR'nin nasıl kullanıldığını göstermektedir. OCR motorunu başlatır, dili ayarlar ve giriş görüntüsünü işleyerek tanınan metni alır ve görüntüler.

