Quechua OCR in C# and .NET

This article was translated from English: Does it need improvement?
Translated
View the article in English

126 wiecej jeżyków

IronOCR to komponent oprogramowania C#, ktory pozwala kodujacym w .NET czytac tekst z obrazow i dokumentow PDF w 126 jezykach, wlaczajac jezyk keczua.

Jest to zaawansowany fork Tesseracta, zbudowany wyłącznie dla deweloperów .NET i regularnie przewyższający inne silniki Tesseract pod względem szybkości i dokładności.

Zawartosc IronOcr.Languages.Quechua

Ten pakiet zawiera 46 języków OCR dla .NET:

  • Keczua
  • KeczuaNajlepszy
  • KeczuaSzybki

Pobieranie

Quechua Language Pack [Runa Simi]

Instalacja

Pierwsza rzecz, ktora musimy zrobic, to zainstalowac nasz pakiet OCR Keczua w twoim projekcie .NET.

Install-Package IronOcr.Languages.Quechua

Przyklad kodu

Ten przyklad kodu C# odczytuje tekst w jezyku keczua z obrazu lub dokumentu PDF.

// Import the IronOcr namespace
using IronOcr;

class Program
{
    static void Main()
    {
        // Create a new IronTesseract OCR engine
        var Ocr = new IronTesseract();

        // Set the OCR language to Quechua
        Ocr.Language = OcrLanguage.Quechua;

        // Wrap OCR input within a using statement for resource management
        using (var Input = new OcrInput(@"images\Quechua.png"))
        {
            // Perform OCR read operation on the input image
            var Result = Ocr.Read(Input);

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

            // Output the recognized text
            Console.WriteLine(AllText);
        }
    }
}
// Import the IronOcr namespace
using IronOcr;

class Program
{
    static void Main()
    {
        // Create a new IronTesseract OCR engine
        var Ocr = new IronTesseract();

        // Set the OCR language to Quechua
        Ocr.Language = OcrLanguage.Quechua;

        // Wrap OCR input within a using statement for resource management
        using (var Input = new OcrInput(@"images\Quechua.png"))
        {
            // Perform OCR read operation on the input image
            var Result = Ocr.Read(Input);

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

            // Output the recognized text
            Console.WriteLine(AllText);
        }
    }
}
' Import the IronOcr namespace
Imports IronOcr

Friend Class Program
	Shared Sub Main()
		' Create a new IronTesseract OCR engine
		Dim Ocr = New IronTesseract()

		' Set the OCR language to Quechua
		Ocr.Language = OcrLanguage.Quechua

		' Wrap OCR input within a using statement for resource management
		Using Input = New OcrInput("images\Quechua.png")
			' Perform OCR read operation on the input image
			Dim Result = Ocr.Read(Input)

			' Retrieve the recognized text from the result
			Dim AllText = Result.Text

			' Output the recognized text
			Console.WriteLine(AllText)
		End Using
	End Sub
End Class
$vbLabelText   $csharpLabel

Do kodu dodano komentarze, aby zapewnic jasnosc i zrozumienie kazdego kroku z implementacji OCR w jezyku keczua za pomoca IronOcr. Upewnij sie, ze "images\Quechua.png" wskazuje na istniejacy plik obrazu w jezyku keczua w twoim systemie.