Quechua OCR in C# and .NET
IronOCR is a C# software component allowing .NET coders to read text from images and PDF documents in 126 languages, including Quechua.
It is an advanced fork of Tesseract, built exclusively for .NET developers and regularly outperforms other Tesseract engines for both speed and accuracy.
Contents of IronOcr.Languages.Quechua
This package contains 46 OCR languages for .NET:
- Quechua
- QuechuaBest
- QuechuaFast
Download
Quechua Language Pack [Runa Simi]
Installation
The first thing we have to do is install our Quechua OCR package to your .NET project.
Install-Package IronOCR.Languages.Quechua
Code Example
This C# code example reads Quechua text from an image or PDF document.
// 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
Comments have been added to the code to provide clarity and understanding of each step involved in implementing the Quechua OCR using IronOcr. Ensure that "images\Quechua.png" points to an existing Quechua image file on your system.