Oriya OCR in C# and .NET
Inne wersje tego dokumentu:
IronOCR jest komponentem oprogramowania C#, który pozwala programistom .NET na odczyt tekstu z obrazów i dokumentów PDF w 126 językach, w tym w języku Oriya. 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.Oriya
Ten pakiet zawiera kilka języków OCR dla .NET:
- Oriya
- OriyaBest
- OriyaFast
- OriyaAlphabet
- OriyaAlphabetBest
- OriyaAlphabetFast
Pobieranie
Oriya Language Pack [ଓଡଆ]
Instalacja
Pierwszą rzeczą, którą musimy zrobić, jest zainstalowanie naszego pakietu OCR Oriya do projektu .NET.
Install-Package IronOcr.Languages.Oriya
Przyklad kodu
Ten przykład kodu C# odczytuje tekst Oriya z obrazu lub dokumentu PDF.
// This example demonstrates how to use the IronOCR library to perform OCR on an Oriya language image.
using IronOcr;
class Program
{
static void Main()
{
// Instantiate the IronTesseract engine
var Ocr = new IronTesseract();
// Set the OCR language to Oriya
Ocr.Language = OcrLanguage.Oriya;
// Define the input file path for the OCR
using (var Input = new OcrInput(@"images\Oriya.png"))
{
// Perform OCR and obtain the result
var Result = Ocr.Read(Input);
// Extract all recognized text from the result
var AllText = Result.Text;
// Output the recognized text
Console.WriteLine(AllText);
}
}
}
// This example demonstrates how to use the IronOCR library to perform OCR on an Oriya language image.
using IronOcr;
class Program
{
static void Main()
{
// Instantiate the IronTesseract engine
var Ocr = new IronTesseract();
// Set the OCR language to Oriya
Ocr.Language = OcrLanguage.Oriya;
// Define the input file path for the OCR
using (var Input = new OcrInput(@"images\Oriya.png"))
{
// Perform OCR and obtain the result
var Result = Ocr.Read(Input);
// Extract all recognized text from the result
var AllText = Result.Text;
// Output the recognized text
Console.WriteLine(AllText);
}
}
}
' This example demonstrates how to use the IronOCR library to perform OCR on an Oriya language image.
Imports IronOcr
Friend Class Program
Shared Sub Main()
' Instantiate the IronTesseract engine
Dim Ocr = New IronTesseract()
' Set the OCR language to Oriya
Ocr.Language = OcrLanguage.Oriya
' Define the input file path for the OCR
Using Input = New OcrInput("images\Oriya.png")
' Perform OCR and obtain the result
Dim Result = Ocr.Read(Input)
' Extract all recognized text from the result
Dim AllText = Result.Text
' Output the recognized text
Console.WriteLine(AllText)
End Using
End Sub
End Class
- Obiekt
IronTesseractjest używany do konfiguracji i wykonywania OCR. - Język OCR jest ustawiony na Oriya za pomocą
OcrLanguage.Oriya. OcrInputpozwala określić obraz lub dokument, z którego ma nastąpić ekstrakcja tekstu.- Metoda
Read()wykonuje OCR i produkuje wynik, z którego rozpoznany tekst można wyodrębnić i wykorzystać.

