Filipino OCR in C# and .NET
IronOCR, .NET kodlayıcılarının görüntülerden ve PDF belgelerinden, Filipince dahil 126 dilde metin okumasına olanak tanıyan bir C# yazılım bileşenidir. Bu, yalnızca .NET geliştiricileri için oluşturulmuş Tesseract'ın ileri bir dalıdır ve hem hız hem de doğruluk açısından diğer Tesseract motorlarını düzenli olarak geride bırakır.
IronOcr.Languages.Filipino İçeriği
Bu paket, .NET için 49 OCR dili içerir:
- Filipince
- FilipinceEnİyi
- FilipinceHızlı
İndirme
Filipin Dil Paketi [Filipinlerin Ulusal Dili]
Kurulum
Yapmamız gereken ilk şey, Filipin OCR paketimizi .NET projenize kurmaktır.
Install-Package IronOcr.Languages.Filipino
Kod Örneği
Bu C# kod örneği, görüntü veya PDF belgesinden Filipin metni okur.
// Import the IronOcr namespace to use its classes and methods.
using IronOcr;
class Program
{
static void Main()
{
// Create a new instance of the IronTesseract OCR engine.
var Ocr = new IronTesseract();
// Set the OCR language to Filipino.
Ocr.Language = OcrLanguage.Filipino;
// Create a new OcrInput object, specifying the path to the image
// or document that contains the text you want to read.
using (var Input = new OcrInput(@"images\Filipino.png"))
{
// Perform OCR on the input.
var Result = Ocr.Read(Input);
// Extract the read text from the OCR result.
var AllText = Result.Text;
// Output the text to the console or use it in your application.
Console.WriteLine(AllText);
}
}
}
// Import the IronOcr namespace to use its classes and methods.
using IronOcr;
class Program
{
static void Main()
{
// Create a new instance of the IronTesseract OCR engine.
var Ocr = new IronTesseract();
// Set the OCR language to Filipino.
Ocr.Language = OcrLanguage.Filipino;
// Create a new OcrInput object, specifying the path to the image
// or document that contains the text you want to read.
using (var Input = new OcrInput(@"images\Filipino.png"))
{
// Perform OCR on the input.
var Result = Ocr.Read(Input);
// Extract the read text from the OCR result.
var AllText = Result.Text;
// Output the text to the console or use it in your application.
Console.WriteLine(AllText);
}
}
}
' Import the IronOcr namespace to use its classes and methods.
Imports IronOcr
Friend Class Program
Shared Sub Main()
' Create a new instance of the IronTesseract OCR engine.
Dim Ocr = New IronTesseract()
' Set the OCR language to Filipino.
Ocr.Language = OcrLanguage.Filipino
' Create a new OcrInput object, specifying the path to the image
' or document that contains the text you want to read.
Using Input = New OcrInput("images\Filipino.png")
' Perform OCR on the input.
Dim Result = Ocr.Read(Input)
' Extract the read text from the OCR result.
Dim AllText = Result.Text
' Output the text to the console or use it in your application.
Console.WriteLine(AllText)
End Using
End Sub
End Class

