// Install the IronOCR Ukrainian language package from NuGet
// PM> Install-Package IronOCR.Languages.Ukrainian
using IronOcr;
// Initialize the IronTesseract OCR engine
var Ocr = new IronTesseract();
// Set the OCR language to Ukrainian
Ocr.Language = OcrLanguage.Ukrainian;
// Create a new OCR input from the image
using (var Input = new OcrInput(@"images\Ukrainian.png"))
{
// Perform OCR on the input image
var Result = Ocr.Read(Input);
// Retrieve all the recognized text
var AllText = Result.Text;
}
// Install the IronOCR Ukrainian language package from NuGet
// PM> Install-Package IronOCR.Languages.Ukrainian
using IronOcr;
// Initialize the IronTesseract OCR engine
var Ocr = new IronTesseract();
// Set the OCR language to Ukrainian
Ocr.Language = OcrLanguage.Ukrainian;
// Create a new OCR input from the image
using (var Input = new OcrInput(@"images\Ukrainian.png"))
{
// Perform OCR on the input image
var Result = Ocr.Read(Input);
// Retrieve all the recognized text
var AllText = Result.Text;
}
' Install the IronOCR Ukrainian language package from NuGet
' PM> Install-Package IronOCR.Languages.Ukrainian
Imports IronOcr
' Initialize the IronTesseract OCR engine
Private Ocr = New IronTesseract()
' Set the OCR language to Ukrainian
Ocr.Language = OcrLanguage.Ukrainian
' Create a new OCR input from the image
Using Input = New OcrInput("images\Ukrainian.png")
' Perform OCR on the input image
Dim Result = Ocr.Read(Input)
' Retrieve all the recognized text
Dim AllText = Result.Text
End Using
$vbLabelText $csharpLabel
// Perform OCR in a single line of code using IronTesseract
string Text = new IronTesseract().Read(@"img\Screenshot.png").Text;
// Perform OCR in a single line of code using IronTesseract
string Text = new IronTesseract().Read(@"img\Screenshot.png").Text;
' Perform OCR in a single line of code using IronTesseract
Dim Text As String = (New IronTesseract()).Read("img\Screenshot.png").Text
$vbLabelText $csharpLabel
// PM> Install-Package IronOCR.Languages.Ukrainian
using IronOcr;
// Initialize the IronTesseract OCR engine
var Ocr = new IronTesseract();
// Set the OCR language to Ukrainian
Ocr.Language = OcrLanguage.Ukrainian;
// Create a new OCR input
using (var Input = new OcrInput())
{
// Add an image to the OCR input
Input.AddImage("images/sample.jpeg");
// Read the OCR results
var Result = Ocr.Read(Input);
// Output the OCR text to the console
Console.WriteLine(Result.Text);
}
// PM> Install-Package IronOCR.Languages.Ukrainian
using IronOcr;
// Initialize the IronTesseract OCR engine
var Ocr = new IronTesseract();
// Set the OCR language to Ukrainian
Ocr.Language = OcrLanguage.Ukrainian;
// Create a new OCR input
using (var Input = new OcrInput())
{
// Add an image to the OCR input
Input.AddImage("images/sample.jpeg");
// Read the OCR results
var Result = Ocr.Read(Input);
// Output the OCR text to the console
Console.WriteLine(Result.Text);
}
' PM> Install-Package IronOCR.Languages.Ukrainian
Imports IronOcr
' Initialize the IronTesseract OCR engine
Private Ocr = New IronTesseract()
' Set the OCR language to Ukrainian
Ocr.Language = OcrLanguage.Ukrainian
' Create a new OCR input
Using Input = New OcrInput()
' Add an image to the OCR input
Input.AddImage("images/sample.jpeg")
' Read the OCR results
Dim Result = Ocr.Read(Input)
' Output the OCR text to the console
Console.WriteLine(Result.Text)
End Using
$vbLabelText $csharpLabel
// Initialize the IronTesseract OCR engine
var Ocr = new IronTesseract();
// Set the OCR language to Ukrainian
Ocr.Language = OcrLanguage.Ukrainian;
// Create a new OCR input
using (var input = new OcrInput())
{
// Add a PDF file to the OCR input (optionally with a password)
input.AddPdf("example.pdf", "password");
// Perform OCR on the input PDF
var Result = Ocr.Read(input);
// Output the OCR text to the console
Console.WriteLine(Result.Text);
Console.WriteLine($"{Result.Pages.Count} Pages");
// Outputs the number of pages processed in the PDF
}
// Initialize the IronTesseract OCR engine
var Ocr = new IronTesseract();
// Set the OCR language to Ukrainian
Ocr.Language = OcrLanguage.Ukrainian;
// Create a new OCR input
using (var input = new OcrInput())
{
// Add a PDF file to the OCR input (optionally with a password)
input.AddPdf("example.pdf", "password");
// Perform OCR on the input PDF
var Result = Ocr.Read(input);
// Output the OCR text to the console
Console.WriteLine(Result.Text);
Console.WriteLine($"{Result.Pages.Count} Pages");
// Outputs the number of pages processed in the PDF
}
' Initialize the IronTesseract OCR engine
Dim Ocr = New IronTesseract()
' Set the OCR language to Ukrainian
Ocr.Language = OcrLanguage.Ukrainian
' Create a new OCR input
Using input = New OcrInput()
' Add a PDF file to the OCR input (optionally with a password)
input.AddPdf("example.pdf", "password")
' Perform OCR on the input PDF
Dim Result = Ocr.Read(input)
' Output the OCR text to the console
Console.WriteLine(Result.Text)
Console.WriteLine($"{Result.Pages.Count} Pages")
' Outputs the number of pages processed in the PDF
End Using
$vbLabelText $csharpLabel
using IronOcr;
// Initialize the IronTesseract OCR engine
var Ocr = new IronTesseract();
// Set the OCR language to Ukrainian
Ocr.Language = OcrLanguage.Ukrainian;
// Create a new OCR input
using (var Input = new OcrInput())
{
// Add a multi-frame TIFF file to the OCR input
Input.AddMultiFrameTiff("multi-frame.tiff");
// Perform OCR on the input TIFF
var Result = Ocr.Read(Input);
// Output the OCR text to the console
Console.WriteLine(Result.Text);
}
using IronOcr;
// Initialize the IronTesseract OCR engine
var Ocr = new IronTesseract();
// Set the OCR language to Ukrainian
Ocr.Language = OcrLanguage.Ukrainian;
// Create a new OCR input
using (var Input = new OcrInput())
{
// Add a multi-frame TIFF file to the OCR input
Input.AddMultiFrameTiff("multi-frame.tiff");
// Perform OCR on the input TIFF
var Result = Ocr.Read(Input);
// Output the OCR text to the console
Console.WriteLine(Result.Text);
}
Imports IronOcr
' Initialize the IronTesseract OCR engine
Private Ocr = New IronTesseract()
' Set the OCR language to Ukrainian
Ocr.Language = OcrLanguage.Ukrainian
' Create a new OCR input
Using Input = New OcrInput()
' Add a multi-frame TIFF file to the OCR input
Input.AddMultiFrameTiff("multi-frame.tiff")
' Perform OCR on the input TIFF
Dim Result = Ocr.Read(Input)
' Output the OCR text to the console
Console.WriteLine(Result.Text)
End Using
$vbLabelText $csharpLabel
// using IronOcr;
var Ocr = new IronTesseract();
// Enable reading of barcodes
Ocr.Configuration.ReadBarCodes = true;
using (var input = new OcrInput())
{
// Add an image containing barcodes to the OCR input
input.AddImage("img/Barcode.png");
// Perform OCR on the input image
var Result = Ocr.Read(input);
// Enumerate through found barcodes and output their values
foreach (var Barcode in Result.Barcodes)
{
Console.WriteLine(Barcode.Value);
// Outputs information about each detected barcode
}
}
// using IronOcr;
var Ocr = new IronTesseract();
// Enable reading of barcodes
Ocr.Configuration.ReadBarCodes = true;
using (var input = new OcrInput())
{
// Add an image containing barcodes to the OCR input
input.AddImage("img/Barcode.png");
// Perform OCR on the input image
var Result = Ocr.Read(input);
// Enumerate through found barcodes and output their values
foreach (var Barcode in Result.Barcodes)
{
Console.WriteLine(Barcode.Value);
// Outputs information about each detected barcode
}
}
' using IronOcr;
Dim Ocr = New IronTesseract()
' Enable reading of barcodes
Ocr.Configuration.ReadBarCodes = True
Using input = New OcrInput()
' Add an image containing barcodes to the OCR input
input.AddImage("img/Barcode.png")
' Perform OCR on the input image
Dim Result = Ocr.Read(input)
' Enumerate through found barcodes and output their values
For Each Barcode In Result.Barcodes
Console.WriteLine(Barcode.Value)
' Outputs information about each detected barcode
Next Barcode
End Using
$vbLabelText $csharpLabel
using IronOcr;
// Initialize the IronTesseract OCR engine
var Ocr = new IronTesseract();
// Set the OCR language to Ukrainian
Ocr.Language = OcrLanguage.Ukrainian;
using (var Input = new OcrInput())
{
// Define a specific region of the image to read
var ContentArea = new System.Drawing.Rectangle() { X = 215, Y = 1250, Height = 280, Width = 1335 };
// Add the image with specified region for OCR
Input.Add("document.png", ContentArea);
// Perform OCR on the specified region
var Result = Ocr.Read(Input);
// Output the OCR text to the console
Console.WriteLine(Result.Text);
}
using IronOcr;
// Initialize the IronTesseract OCR engine
var Ocr = new IronTesseract();
// Set the OCR language to Ukrainian
Ocr.Language = OcrLanguage.Ukrainian;
using (var Input = new OcrInput())
{
// Define a specific region of the image to read
var ContentArea = new System.Drawing.Rectangle() { X = 215, Y = 1250, Height = 280, Width = 1335 };
// Add the image with specified region for OCR
Input.Add("document.png", ContentArea);
// Perform OCR on the specified region
var Result = Ocr.Read(Input);
// Output the OCR text to the console
Console.WriteLine(Result.Text);
}
Imports IronOcr
' Initialize the IronTesseract OCR engine
Private Ocr = New IronTesseract()
' Set the OCR language to Ukrainian
Ocr.Language = OcrLanguage.Ukrainian
Using Input = New OcrInput()
' Define a specific region of the image to read
Dim ContentArea = New System.Drawing.Rectangle() With {
.X = 215,
.Y = 1250,
.Height = 280,
.Width = 1335
}
' Add the image with specified region for OCR
Input.Add("document.png", ContentArea)
' Perform OCR on the specified region
Dim Result = Ocr.Read(Input)
' Output the OCR text to the console
Console.WriteLine(Result.Text)
End Using
$vbLabelText $csharpLabel
using IronOcr;
// Initialize the IronTesseract OCR engine
var Ocr = new IronTesseract();
// Set the OCR language to Ukrainian
Ocr.Language = OcrLanguage.Ukrainian;
using (var Input = new OcrInput(@"img\Potter.LowQuality.tiff"))
{
// Apply noise reduction filters
Input.DeNoise(); // Corrects digital noise and poor scanning
Input.Deskew(); // Fixes rotation and perspective
// Perform OCR on the corrected input
var Result = Ocr.Read(Input);
// Output the OCR text to the console
Console.WriteLine(Result.Text);
}
using IronOcr;
// Initialize the IronTesseract OCR engine
var Ocr = new IronTesseract();
// Set the OCR language to Ukrainian
Ocr.Language = OcrLanguage.Ukrainian;
using (var Input = new OcrInput(@"img\Potter.LowQuality.tiff"))
{
// Apply noise reduction filters
Input.DeNoise(); // Corrects digital noise and poor scanning
Input.Deskew(); // Fixes rotation and perspective
// Perform OCR on the corrected input
var Result = Ocr.Read(Input);
// Output the OCR text to the console
Console.WriteLine(Result.Text);
}
Imports IronOcr
' Initialize the IronTesseract OCR engine
Private Ocr = New IronTesseract()
' Set the OCR language to Ukrainian
Ocr.Language = OcrLanguage.Ukrainian
Using Input = New OcrInput("img\Potter.LowQuality.tiff")
' Apply noise reduction filters
Input.DeNoise() ' Corrects digital noise and poor scanning
Input.Deskew() ' Fixes rotation and perspective
' Perform OCR on the corrected input
Dim Result = Ocr.Read(Input)
' Output the OCR text to the console
Console.WriteLine(Result.Text)
End Using
$vbLabelText $csharpLabel
using IronOcr;
// Initialize the IronTesseract OCR engine
var Ocr = new IronTesseract();
// Set the OCR language to Ukrainian
Ocr.Language = OcrLanguage.Ukrainian;
using (var Input = new OcrInput())
{
// Set the title for the PDF
Input.Title = "Quarterly Report";
// Add images to be included in the searchable PDF
Input.AddImage("image1.jpeg");
Input.AddImage("image2.png");
Input.AddImage("image3.gif");
// Perform OCR and save the results as a searchable PDF
var Result = Ocr.Read(Input);
Result.SaveAsSearchablePdf("searchable.pdf");
}
using IronOcr;
// Initialize the IronTesseract OCR engine
var Ocr = new IronTesseract();
// Set the OCR language to Ukrainian
Ocr.Language = OcrLanguage.Ukrainian;
using (var Input = new OcrInput())
{
// Set the title for the PDF
Input.Title = "Quarterly Report";
// Add images to be included in the searchable PDF
Input.AddImage("image1.jpeg");
Input.AddImage("image2.png");
Input.AddImage("image3.gif");
// Perform OCR and save the results as a searchable PDF
var Result = Ocr.Read(Input);
Result.SaveAsSearchablePdf("searchable.pdf");
}
Imports IronOcr
' Initialize the IronTesseract OCR engine
Private Ocr = New IronTesseract()
' Set the OCR language to Ukrainian
Ocr.Language = OcrLanguage.Ukrainian
Using Input = New OcrInput()
' Set the title for the PDF
Input.Title = "Quarterly Report"
' Add images to be included in the searchable PDF
Input.AddImage("image1.jpeg")
Input.AddImage("image2.png")
Input.AddImage("image3.gif")
' Perform OCR and save the results as a searchable PDF
Dim Result = Ocr.Read(Input)
Result.SaveAsSearchablePdf("searchable.pdf")
End Using
$vbLabelText $csharpLabel
using IronOcr;
// Initialize the IronTesseract OCR engine
var Ocr = new IronTesseract();
// Set the OCR language to Ukrainian
Ocr.Language = OcrLanguage.Ukrainian;
using (var Input = new OcrInput())
{
// Add a TIFF file for conversion
Input.AddMultiFrameTiff("example.tiff");
// Perform OCR and save the results as a searchable PDF
var Result = Ocr.Read(Input).SaveAsSearchablePdf("searchable.pdf");
}
using IronOcr;
// Initialize the IronTesseract OCR engine
var Ocr = new IronTesseract();
// Set the OCR language to Ukrainian
Ocr.Language = OcrLanguage.Ukrainian;
using (var Input = new OcrInput())
{
// Add a TIFF file for conversion
Input.AddMultiFrameTiff("example.tiff");
// Perform OCR and save the results as a searchable PDF
var Result = Ocr.Read(Input).SaveAsSearchablePdf("searchable.pdf");
}
Imports IronOcr
' Initialize the IronTesseract OCR engine
Private Ocr = New IronTesseract()
' Set the OCR language to Ukrainian
Ocr.Language = OcrLanguage.Ukrainian
Using Input = New OcrInput()
' Add a TIFF file for conversion
Input.AddMultiFrameTiff("example.tiff")
' Perform OCR and save the results as a searchable PDF
Dim Result = Ocr.Read(Input).SaveAsSearchablePdf("searchable.pdf")
End Using
$vbLabelText $csharpLabel
using IronOcr;
// Initialize the IronTesseract OCR engine
var Ocr = new IronTesseract();
// Set the OCR language to Ukrainian
Ocr.Language = OcrLanguage.Ukrainian;
using (var Input = new OcrInput())
{
// Set the title for the XHTML file
input.Title = "Html Title";
// Add an image for conversion to XHTML
input.AddImage("image1.jpeg");
// Perform OCR and save the results as XHTML
var Result = Ocr.Read(input);
Result.SaveAsHocrFile("results.html");
}
using IronOcr;
// Initialize the IronTesseract OCR engine
var Ocr = new IronTesseract();
// Set the OCR language to Ukrainian
Ocr.Language = OcrLanguage.Ukrainian;
using (var Input = new OcrInput())
{
// Set the title for the XHTML file
input.Title = "Html Title";
// Add an image for conversion to XHTML
input.AddImage("image1.jpeg");
// Perform OCR and save the results as XHTML
var Result = Ocr.Read(input);
Result.SaveAsHocrFile("results.html");
}
Imports IronOcr
' Initialize the IronTesseract OCR engine
Private Ocr = New IronTesseract()
' Set the OCR language to Ukrainian
Ocr.Language = OcrLanguage.Ukrainian
Using Input = New OcrInput()
' Set the title for the XHTML file
input.Title = "Html Title"
' Add an image for conversion to XHTML
input.AddImage("image1.jpeg")
' Perform OCR and save the results as XHTML
Dim Result = Ocr.Read(input)
Result.SaveAsHocrFile("results.html")
End Using
$vbLabelText $csharpLabel
using IronOcr;
// Initialize the IronTesseract OCR engine
var Ocr = new IronTesseract();
// Set the OCR language to Arabic
Ocr.Language = OcrLanguage.Arabic;
using (var input = new OcrInput())
{
// Add an image with Arabic text to the OCR input
input.AddImage("img/arabic.gif");
// Optionally add image filters for low-quality scans
// Perform OCR
var Result = Ocr.Read(input);
// Save the OCR results to a text file
// Note: Console may not display Arabic text properly
Result.SaveAsTextFile("arabic.txt");
}
using IronOcr;
// Initialize the IronTesseract OCR engine
var Ocr = new IronTesseract();
// Set the OCR language to Arabic
Ocr.Language = OcrLanguage.Arabic;
using (var input = new OcrInput())
{
// Add an image with Arabic text to the OCR input
input.AddImage("img/arabic.gif");
// Optionally add image filters for low-quality scans
// Perform OCR
var Result = Ocr.Read(input);
// Save the OCR results to a text file
// Note: Console may not display Arabic text properly
Result.SaveAsTextFile("arabic.txt");
}
Imports IronOcr
' Initialize the IronTesseract OCR engine
Private Ocr = New IronTesseract()
' Set the OCR language to Arabic
Ocr.Language = OcrLanguage.Arabic
Using input = New OcrInput()
' Add an image with Arabic text to the OCR input
input.AddImage("img/arabic.gif")
' Optionally add image filters for low-quality scans
' Perform OCR
Dim Result = Ocr.Read(input)
' Save the OCR results to a text file
' Note: Console may not display Arabic text properly
Result.SaveAsTextFile("arabic.txt")
End Using
$vbLabelText $csharpLabel
// using IronOcr;
// PM> Install IronOcr.Languages.ChineseSimplified
var Ocr = new IronTesseract();
// Set the primary OCR language to Chinese Simplified
Ocr.Language = OcrLanguage.ChineseSimplified;
// Add secondary language for OCR
Ocr.AddSecondaryLanguage(OcrLanguage.Ukrainian);
using (var input = new OcrInput())
{
// Add a multi-language document for OCR
input.Add("multi-language.pdf");
// Perform OCR and save the results to a text file
var Result = Ocr.Read(input);
Result.SaveAsTextFile("results.txt");
}
// using IronOcr;
// PM> Install IronOcr.Languages.ChineseSimplified
var Ocr = new IronTesseract();
// Set the primary OCR language to Chinese Simplified
Ocr.Language = OcrLanguage.ChineseSimplified;
// Add secondary language for OCR
Ocr.AddSecondaryLanguage(OcrLanguage.Ukrainian);
using (var input = new OcrInput())
{
// Add a multi-language document for OCR
input.Add("multi-language.pdf");
// Perform OCR and save the results to a text file
var Result = Ocr.Read(input);
Result.SaveAsTextFile("results.txt");
}
' using IronOcr;
' PM> Install IronOcr.Languages.ChineseSimplified
Dim Ocr = New IronTesseract()
' Set the primary OCR language to Chinese Simplified
Ocr.Language = OcrLanguage.ChineseSimplified
' Add secondary language for OCR
Ocr.AddSecondaryLanguage(OcrLanguage.Ukrainian)
Using input = New OcrInput()
' Add a multi-language document for OCR
input.Add("multi-language.pdf")
' Perform OCR and save the results to a text file
Dim Result = Ocr.Read(input)
Result.SaveAsTextFile("results.txt")
End Using
$vbLabelText $csharpLabel
using IronOcr;
using System.Drawing; // Add reference for System.Drawing
var Ocr = new IronTesseract();
// Set the OCR language to Ukrainian and configure the engine
Ocr.Language = OcrLanguage.Ukrainian;
Ocr.Configuration.EngineMode = TesseractEngineMode.TesseractAndLstm;
Ocr.Configuration.ReadBarCodes = true; // Important for barcode reading
using (var Input = new OcrInput(@"images\sample.tiff"))
{
// Perform OCR and get detailed result objects
OcrResult Result = Ocr.Read(Input);
var Pages = Result.Pages;
var Words = Pages[0].Words;
var Barcodes = Result.Barcodes;
// Explore detailed API:
// - Pages, Blocks, Paragraphs, Lines, Words, Characters
// - Export images, font coordinates, statistics
}
using IronOcr;
using System.Drawing; // Add reference for System.Drawing
var Ocr = new IronTesseract();
// Set the OCR language to Ukrainian and configure the engine
Ocr.Language = OcrLanguage.Ukrainian;
Ocr.Configuration.EngineMode = TesseractEngineMode.TesseractAndLstm;
Ocr.Configuration.ReadBarCodes = true; // Important for barcode reading
using (var Input = new OcrInput(@"images\sample.tiff"))
{
// Perform OCR and get detailed result objects
OcrResult Result = Ocr.Read(Input);
var Pages = Result.Pages;
var Words = Pages[0].Words;
var Barcodes = Result.Barcodes;
// Explore detailed API:
// - Pages, Blocks, Paragraphs, Lines, Words, Characters
// - Export images, font coordinates, statistics
}
Imports IronOcr
Imports System.Drawing ' Add reference for System.Drawing
Private Ocr = New IronTesseract()
' Set the OCR language to Ukrainian and configure the engine
Ocr.Language = OcrLanguage.Ukrainian
Ocr.Configuration.EngineMode = TesseractEngineMode.TesseractAndLstm
Ocr.Configuration.ReadBarCodes = True ' Important for barcode reading
Using Input = New OcrInput("images\sample.tiff")
' Perform OCR and get detailed result objects
Dim Result As OcrResult = Ocr.Read(Input)
Dim Pages = Result.Pages
Dim Words = Pages(0).Words
Dim Barcodes = Result.Barcodes
' Explore detailed API:
' - Pages, Blocks, Paragraphs, Lines, Words, Characters
' - Export images, font coordinates, statistics
End Using
$vbLabelText $csharpLabel
Try IronOCR for Free
Get Set Up in 5 Minutes
Install with NuGet
Version: 2025.6
Install-Package IronOcr
nuget.org/packages/IronOcr/
In Solution Explorer, right-click References, Manage NuGet Packages