Portuguese OCR in C# and .NET

This article was translated from English: Does it need improvement?
Translated
View the article in English
Bu belgenin diğer versiyonları:

IronOCR, .NET geliştiricilerinin Portekizce dahil olmak üzere 126 dildeki görüntü ve PDF belgelerinden metin okumalarına olanak tanıyan 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.Portuguese İçeriği

Bu paket, .NET için 55 OCR dili içerir:

  • Portekizce
  • PortekizceEn iyi
  • PortekizceFast

İndir

Portekizce Dil Paketi [português]

Kurulum

Yapmamız gereken ilk şey, .NET projenize Portekizce OCR paketini yüklemek.

Install-Package IronOcr.Languages.Portuguese

Kod Örneği

Bu C# kod örneği, bir Görüntü veya PDF belgesinden Portekizce metnini okumaktadır.

// Required using directive for IronOcr
using IronOcr;

var Ocr = new IronTesseract();

// Specify the language for OCR as Portuguese
Ocr.Language = OcrLanguage.Portuguese;

// Load the image or PDF from which to read the text
using (var Input = new OcrInput(@"images\Portuguese.png"))
{
    // Perform OCR on the input
    var Result = Ocr.Read(Input);

    // Retrieve the recognized text
    var AllText = Result.Text;

    // Output the extracted text
    Console.WriteLine(AllText);
}
// Required using directive for IronOcr
using IronOcr;

var Ocr = new IronTesseract();

// Specify the language for OCR as Portuguese
Ocr.Language = OcrLanguage.Portuguese;

// Load the image or PDF from which to read the text
using (var Input = new OcrInput(@"images\Portuguese.png"))
{
    // Perform OCR on the input
    var Result = Ocr.Read(Input);

    // Retrieve the recognized text
    var AllText = Result.Text;

    // Output the extracted text
    Console.WriteLine(AllText);
}
' Required using directive for IronOcr
Imports IronOcr

Private Ocr = New IronTesseract()

' Specify the language for OCR as Portuguese
Ocr.Language = OcrLanguage.Portuguese

' Load the image or PDF from which to read the text
Using Input = New OcrInput("images\Portuguese.png")
	' Perform OCR on the input
	Dim Result = Ocr.Read(Input)

	' Retrieve the recognized text
	Dim AllText = Result.Text

	' Output the extracted text
	Console.WriteLine(AllText)
End Using
$vbLabelText   $csharpLabel

Bu kod, bir görüntüden Portekizce metin okumak için IronOCR kütüphanesini nasıl kurup kullanacağınızı göstermektedir. Görüntü veya PDF belgesi yolunun doğru olduğundan emin olun. Tanınan metin AllText değişkeninde saklanacak ve konsola yazdırılacaktır.