Cebuano OCR in C
IronOCR, .NET kodlayıcılarının Cebuano dahil olmak üzere 126 dildeki görüntülerden ve PDF belgelerinden metin okumasına olanak tanıyan bir C# yazılım bileşenidir. Tesseract'ın .NET geliştiricileri için özel olarak oluşturulan ve hız ve doğruluk açısından diğer Tesseract motorlarını düzenli olarak geride bırakan gelişmiş bir çatallamasıdır.
IronOcr.Languages.Cebuano İçeriği
Bu paket, .NET için 46 OCR dili içerir:
- Cebuano
- CebuanoEnIyi
- CebuanoHizli
İndirme
Cebuano Dil Paketi [Bisaya]
Kurulum
Yapmamız gereken ilk şey, Cebuano OCR paketimizi .NET projenize kurmaktır.
Install-Package IronOcr.Languages.Cebuano
Kod Örneği
Bu C# kod örneği, bir resim veya PDF belgesinden Cebuano metni okur.
// Install the IronOCR Cebuano language package via NuGet package manager
// PM> Install-Package IronOcr.Languages.Cebuano
using IronOcr;
class Program
{
static void Main()
{
// Instantiate an IronTesseract object
var Ocr = new IronTesseract();
// Set the OCR language to Cebuano
Ocr.Language = OcrLanguage.Cebuano;
// Define the input source containing the image or PDF with Cebuano text
using (var Input = new OcrInput(@"images\Cebuano.png"))
{
// Perform OCR to read the text from the input source
var Result = Ocr.Read(Input);
// Extract and display the recognized text
var AllText = Result.Text;
Console.WriteLine(AllText);
}
}
}
// Install the IronOCR Cebuano language package via NuGet package manager
// PM> Install-Package IronOcr.Languages.Cebuano
using IronOcr;
class Program
{
static void Main()
{
// Instantiate an IronTesseract object
var Ocr = new IronTesseract();
// Set the OCR language to Cebuano
Ocr.Language = OcrLanguage.Cebuano;
// Define the input source containing the image or PDF with Cebuano text
using (var Input = new OcrInput(@"images\Cebuano.png"))
{
// Perform OCR to read the text from the input source
var Result = Ocr.Read(Input);
// Extract and display the recognized text
var AllText = Result.Text;
Console.WriteLine(AllText);
}
}
}
' Install the IronOCR Cebuano language package via NuGet package manager
' PM> Install-Package IronOcr.Languages.Cebuano
Imports IronOcr
Friend Class Program
Shared Sub Main()
' Instantiate an IronTesseract object
Dim Ocr = New IronTesseract()
' Set the OCR language to Cebuano
Ocr.Language = OcrLanguage.Cebuano
' Define the input source containing the image or PDF with Cebuano text
Using Input = New OcrInput("images\Cebuano.png")
' Perform OCR to read the text from the input source
Dim Result = Ocr.Read(Input)
' Extract and display the recognized text
Dim AllText = Result.Text
Console.WriteLine(AllText)
End Using
End Sub
End Class
Söz konusu kod parçası, Cebuano metinlerini okumak için C# ve .NET kullanarak IronOCR'u nasıl kullanmamız gerektiğini gösteriyor. OCR motorunu kurarak ve Cebuano dilini belirterek başlar, ardından bir resim dosyasını işler ve çıkarılan metni yazar. Proje ortamınıza uygun olarak resim yolunun doğru belirtildiğinden emin olun.

