Quechua OCR in C# and .NET
IronOCR to komponent oprogramowania C#, ktory pozwala kodujacym w .NET czytac tekst z obrazow i dokumentow PDF w 126 językach, 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
- KeczuaBest
- KeczuaSzybki
Pobieranie
Quechua Language Pack [Runa Simi]
Instalacja
Pierwsza rzecz, która musimy zrobic, to zainstalować nasz pakiet OCR Keczua w twoim projekcie .NET.
Install-Package IronOcr.Languages.Quechua
Przyklad kodu
Ten przyklad kodu C# odczytuje tekst w języku 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
Do kodu dodano komentarze, aby zapewnić jasność i zrozumienie każdego etapu wdrażania OCR języka keczua using IronOCR. Upewnij sie, ze "images\Quechua.png" wskazuje na istniejacy plik obrazu w języku keczua w twoim systemie.

