Belarusian OCR in C# and .NET
Other versions of this document:
IronOCR is a C# software component allowing .NET coders to read text from images and PDF documents in 126 languages, including Belarusian.
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.Belarusian
This package contains 55 OCR languages for .NET:
- Belarusian
- BelarusianBest
- BelarusianFast
Download
Belarusian Language Pack [беларуская мова]
Installation
The first thing we have to do is install our Belarusian OCR package to your .NET project.
Install-Package IronOCR.Languages.Belarusian
Code Example
This C# code example reads Belarusian text from an Image or PDF document.
// Import the IronOcr namespace to access OCR functionalities
using IronOcr;
class BelarusianOcrExample
{
static void Main()
{
// Initialize the IronTesseract OCR engine
var Ocr = new IronTesseract();
// Set the language to Belarusian for optimal recognition results
Ocr.Language = OcrLanguage.Belarusian;
// Define the input source: Image or PDF from a path
using (var Input = new OcrInput(@"images\Belarusian.png"))
{
// Perform OCR to read the text
var Result = Ocr.Read(Input);
// Extract the recognized text
var AllText = Result.Text;
// Output the recognized text to the console
System.Console.WriteLine(AllText);
}
}
}
// Import the IronOcr namespace to access OCR functionalities
using IronOcr;
class BelarusianOcrExample
{
static void Main()
{
// Initialize the IronTesseract OCR engine
var Ocr = new IronTesseract();
// Set the language to Belarusian for optimal recognition results
Ocr.Language = OcrLanguage.Belarusian;
// Define the input source: Image or PDF from a path
using (var Input = new OcrInput(@"images\Belarusian.png"))
{
// Perform OCR to read the text
var Result = Ocr.Read(Input);
// Extract the recognized text
var AllText = Result.Text;
// Output the recognized text to the console
System.Console.WriteLine(AllText);
}
}
}
' Import the IronOcr namespace to access OCR functionalities
Imports IronOcr
Friend Class BelarusianOcrExample
Shared Sub Main()
' Initialize the IronTesseract OCR engine
Dim Ocr = New IronTesseract()
' Set the language to Belarusian for optimal recognition results
Ocr.Language = OcrLanguage.Belarusian
' Define the input source: Image or PDF from a path
Using Input = New OcrInput("images\Belarusian.png")
' Perform OCR to read the text
Dim Result = Ocr.Read(Input)
' Extract the recognized text
Dim AllText = Result.Text
' Output the recognized text to the console
System.Console.WriteLine(AllText)
End Using
End Sub
End Class