Uzbek OCR in C# and .NET

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

IronOCR to komponent oprogramowania C# pozwalający programistom .NET odczytywać tekst z obrazów i dokumentów PDF w 126 językach, w tym po uzbecku.

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.

Zawartość IronOcr.Languages.Uzbek

Ten pakiet zawiera 102 języki OCR dla .NET:

  • Uzbek
  • UzbekBest
  • UzbekFast
  • UzbekCyrillic
  • UzbekCyrillicBest
  • UzbekCyrillicFast

Pobieranie

Uzbek Language Pack [O'zbek]

Instalacja

Pierwszą rzeczą, którą musimy zrobić, jest zainstalowanie naszego pakietu OCR Uzbek do projektu .NET.

PM> Install-Package IronOcr.Languages.Uzbek

Przyklad kodu

Ten przykład kodu C# odczytuje tekst w języku uzbeckim z obrazu lub dokumentu PDF.

// Ensure you have installed the Uzbek language package for IronOCR
// PM> Install-Package IronOcr.Languages.Uzbek

using IronOcr;

namespace UzbekOcrExample
{
    class Program
    {
        static void Main(string[] args)
        {
            // Initialize the IronTesseract object
            var Ocr = new IronTesseract();

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

            // Specify the file path of the image or PDF containing Uzbek text
            using (var Input = new OcrInput(@"images\Uzbek.png"))
            {
                // Perform OCR on the input and get the result
                var Result = Ocr.Read(Input);

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

                // Output the recognized text to the console
                Console.WriteLine(AllText);
            }
        }
    }
}
// Ensure you have installed the Uzbek language package for IronOCR
// PM> Install-Package IronOcr.Languages.Uzbek

using IronOcr;

namespace UzbekOcrExample
{
    class Program
    {
        static void Main(string[] args)
        {
            // Initialize the IronTesseract object
            var Ocr = new IronTesseract();

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

            // Specify the file path of the image or PDF containing Uzbek text
            using (var Input = new OcrInput(@"images\Uzbek.png"))
            {
                // Perform OCR on the input and get the result
                var Result = Ocr.Read(Input);

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

                // Output the recognized text to the console
                Console.WriteLine(AllText);
            }
        }
    }
}
' Ensure you have installed the Uzbek language package for IronOCR
' PM> Install-Package IronOcr.Languages.Uzbek

Imports IronOcr

Namespace UzbekOcrExample
	Friend Class Program
		Shared Sub Main(ByVal args() As String)
			' Initialize the IronTesseract object
			Dim Ocr = New IronTesseract()

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

			' Specify the file path of the image or PDF containing Uzbek text
			Using Input = New OcrInput("images\Uzbek.png")
				' Perform OCR on the input and get the result
				Dim Result = Ocr.Read(Input)

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

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