Assamese 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 jest komponentem oprogramowania w C#, pozwalającym programistom .NET odczytywać teksty z obrazów i dokumentów PDF w 126 językach, w tym w języku assamskim.

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.Assamese

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

  • Assamese
  • AssameseBest
  • AssameseFast

Pobieranie

Assamese Language Pack [অসমীযা]

Instalacja

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

Install-Package IronOcr.Languages.Assamese

Przyklad kodu

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

// Make sure to install the necessary package:
// PM> Install-Package IronOcr.Languages.Assamese

using IronOcr;

class OCRExample
{
    public void ReadAssameseText()
    {
        // Create an instance of IronTesseract OCR engine
        var Ocr = new IronTesseract();

        // Set the language to Assamese
        Ocr.Language = OcrLanguage.Assamese;

        // Create an OCR input object with the specified image or PDF file
        using (var Input = new OcrInput(@"images\Assamese.png"))
        {
            // Read the text from the input file
            var Result = Ocr.Read(Input);

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

            // Output the recognized text to the console
            Console.WriteLine(AllText);
        }
    }
}
// Make sure to install the necessary package:
// PM> Install-Package IronOcr.Languages.Assamese

using IronOcr;

class OCRExample
{
    public void ReadAssameseText()
    {
        // Create an instance of IronTesseract OCR engine
        var Ocr = new IronTesseract();

        // Set the language to Assamese
        Ocr.Language = OcrLanguage.Assamese;

        // Create an OCR input object with the specified image or PDF file
        using (var Input = new OcrInput(@"images\Assamese.png"))
        {
            // Read the text from the input file
            var Result = Ocr.Read(Input);

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

            // Output the recognized text to the console
            Console.WriteLine(AllText);
        }
    }
}
' Make sure to install the necessary package:
' PM> Install-Package IronOcr.Languages.Assamese

Imports IronOcr

Friend Class OCRExample
	Public Sub ReadAssameseText()
		' Create an instance of IronTesseract OCR engine
		Dim Ocr = New IronTesseract()

		' Set the language to Assamese
		Ocr.Language = OcrLanguage.Assamese

		' Create an OCR input object with the specified image or PDF file
		Using Input = New OcrInput("images\Assamese.png")
			' Read the text from the input file
			Dim Result = Ocr.Read(Input)

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

			' Output the recognized text to the console
			Console.WriteLine(AllText)
		End Using
	End Sub
End Class
$vbLabelText   $csharpLabel
  • IronTesseract: Jest to główna klasa odpowiedzialna za operacje OCR.
  • OcrLanguage.Assamese: Określa język dla OCR. W tym przypadku jest ustawiony na język assamski.
  • OcrInput: Ta klasa służy do ładowania obrazów lub dokumentów PDF, z których chcesz wydobyć tekst.
  • Result.Text: Zawiera kompletny tekst wyodrębniony z obrazu lub PDF.