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
- Alfabet orija
- Alfabet orijaBest
- Alfabet orijaFast
Pobieranie
Oriya Language Pack [ଓଡଆ]
Instalacja
Pierwszą rzeczą, którą musimy zrobić, jest zainstalowanie naszego pakietu OCR Oriya do projektu .NET.
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.
Imports IronOcr
Module Program
Sub Main()
' Instantiate the IronTesseract engine
Dim Ocr As New IronTesseract()
' Set the OCR language to Oriya
Ocr.Language = OcrLanguage.Oriya
' Define the input file path for the OCR
Using Input As 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 Module' This example demonstrates how to use the IronOCR library to perform OCR on an Oriya language image.
Imports IronOcr
Module Program
Sub Main()
' Instantiate the IronTesseract engine
Dim Ocr As New IronTesseract()
' Set the OCR language to Oriya
Ocr.Language = OcrLanguage.Oriya
' Define the input file path for the OCR
Using Input As 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 Module- Obiekt
IronTesseractsluzy do konfigurowania i wykonywania OCR. - Jezyk do OCR jest ustawiany na Oriya przy uzyciu
OcrLanguage.Oriya. OcrInputpozwala okreslic obraz lub dokument, z ktorego ma byc wyekstrahowany tekst.- Metoda
Read()wykonuje OCR i generuje wynik, z ktorego rozpoznany tekst moze byc wyekstrahowany i wykorzystany.
Curtis Chau posiada tytuł licencjata z informatyki (Uniwersytet Carleton) i specjalizuje się w front-endowym rozwoju, z ekspertką w Node.js, TypeScript, JavaScript i React. Pasjonuje się tworzeniem intuicyjnych i estetycznie przyjemnych interfejsów użytkownika, Curtis cieszy się pracą z nowoczesnymi frameworkami i tworzeniem dobrze zorganizowanych, atrakcyjnych wizualnie podręczników.