// First, ensure that the IronOcr.Languages.Amharic package is installed.// PM> Install-Package IronOcr.Languages.Amharicusing IronOcr;// Create a new instance of IronTesseract for OCR operations.varOcr = new IronTesseract();// Set the OCR language to Amharic.Ocr.Language = OcrLanguage.Amharic;// Load and process the input image.using (varInput = new OcrInput(@"images\Amharic.png")){ // Perform OCR on the image and retrieve the result. varResult = Ocr.Read(Input); // Extract and store the recognized text. varAllText = Result.Text;}
// First, ensure that the IronOcr.Languages.Amharic package is installed.
// PM> Install-Package IronOcr.Languages.Amharic
using IronOcr;
// Create a new instance of IronTesseract for OCR operations.
var Ocr = new IronTesseract();
// Set the OCR language to Amharic.
Ocr.Language = OcrLanguage.Amharic;
// Load and process the input image.
using (var Input = new OcrInput(@"images\Amharic.png"))
{
// Perform OCR on the image and retrieve the result.
var Result = Ocr.Read(Input);
// Extract and store the recognized text.
var AllText = Result.Text;
}
' First, ensure that the IronOcr.Languages.Amharic package is installed.' PM> Install-Package IronOcr.Languages.AmharicImportsIronOcr' Create a new instance of IronTesseract for OCR operations.PrivateOcr = New IronTesseract()' Set the OCR language to Amharic.Ocr.Language = OcrLanguage.Amharic' Load and process the input image.UsingInput = New OcrInput("images\Amharic.png") ' Perform OCR on the image and retrieve the result. DimResult = Ocr.Read(Input) ' Extract and store the recognized text. DimAllText = Result.TextEndUsing
' First, ensure that the IronOcr.Languages.Amharic package is installed.
' PM> Install-Package IronOcr.Languages.Amharic
Imports IronOcr
' Create a new instance of IronTesseract for OCR operations.
Private Ocr = New IronTesseract()
' Set the OCR language to Amharic.
Ocr.Language = OcrLanguage.Amharic
' Load and process the input image.
Using Input = New OcrInput("images\Amharic.png")
' Perform OCR on the image and retrieve the result.
Dim Result = Ocr.Read(Input)
' Extract and store the recognized text.
Dim AllText = Result.Text
End Using
using IronOcr;// Use IronTesseract to easily perform OCR in one line.stringText = new IronTesseract().Read(@"img\Screenshot.png").Text;
using IronOcr;
// Use IronTesseract to easily perform OCR in one line.
string Text = new IronTesseract().Read(@"img\Screenshot.png").Text;
ImportsIronOcr' Use IronTesseract to easily perform OCR in one line.PrivateTextAsString = (New IronTesseract()).Read("img\Screenshot.png").Text
Imports IronOcr
' Use IronTesseract to easily perform OCR in one line.
Private Text As String = (New IronTesseract()).Read("img\Screenshot.png").Text
ሊዋቀር የሚችል ሰላም ዓለም
// PM> Install-Package IronOcr.Languages.Amharicusing IronOcr;// Create a new instance of IronTesseract for OCR operations.varOcr = new IronTesseract();// Set the OCR language to Amharric.Ocr.Language = OcrLanguage.Amharic;// Create OCR input.using (varInput = new OcrInput()){ // Add images to the OCR input.Input.AddImage("images/sample.jpeg"); // Perform OCR on the input and retrieve the result. varResult = Ocr.Read(Input); // Output the recognized text to the console.Console.WriteLine(Result.Text);}
// PM> Install-Package IronOcr.Languages.Amharic
using IronOcr;
// Create a new instance of IronTesseract for OCR operations.
var Ocr = new IronTesseract();
// Set the OCR language to Amharric.
Ocr.Language = OcrLanguage.Amharic;
// Create OCR input.
using (var Input = new OcrInput())
{
// Add images to the OCR input.
Input.AddImage("images/sample.jpeg");
// Perform OCR on the input and retrieve the result.
var Result = Ocr.Read(Input);
// Output the recognized text to the console.
Console.WriteLine(Result.Text);
}
ImportsIronOcr' Create a new instance of IronTesseract for OCR operations.DimOcrAs New IronTesseract()' Set the OCR language to Amharic.Ocr.Language = OcrLanguage.Amharic' Create OCR input.UsingInputAs New OcrInput() ' Add images to the OCR input.Input.AddImage("images/sample.jpeg") ' Perform OCR on the input and retrieve the result. DimResult = Ocr.Read(Input) ' Output the recognized text to the console.Console.WriteLine(Result.Text)EndUsing
Imports IronOcr
' Create a new instance of IronTesseract for OCR operations.
Dim Ocr As New IronTesseract()
' Set the OCR language to Amharic.
Ocr.Language = OcrLanguage.Amharic
' Create OCR input.
Using Input As New OcrInput()
' Add images to the OCR input.
Input.AddImage("images/sample.jpeg")
' Perform OCR on the input and retrieve the result.
Dim Result = Ocr.Read(Input)
' Output the recognized text to the console.
Console.WriteLine(Result.Text)
End Using
using IronOcr;// Initialize the OCR engine and set the language to Amharic.varOcr = new IronTesseract();Ocr.Language = OcrLanguage.Amharic;// Load a PDF and extract text.using (var input = new OcrInput()){ input.AddPdf("example.pdf", "password"); // Optionally choose specific PDF page numbers for OCR if needed. // Perform OCR and get results. varResult = Ocr.Read(input); // Output the recognized text and the page count to the console.Console.WriteLine(Result.Text);Console.WriteLine($"{Result.Pages.Count()} Pages");}
using IronOcr;
// Initialize the OCR engine and set the language to Amharic.
var Ocr = new IronTesseract();
Ocr.Language = OcrLanguage.Amharic;
// Load a PDF and extract text.
using (var input = new OcrInput())
{
input.AddPdf("example.pdf", "password");
// Optionally choose specific PDF page numbers for OCR if needed.
// Perform OCR and get results.
var Result = Ocr.Read(input);
// Output the recognized text and the page count to the console.
Console.WriteLine(Result.Text);
Console.WriteLine($"{Result.Pages.Count()} Pages");
}
ImportsIronOcr' Initialize the OCR engine and set the language to Amharic.PrivateOcr = New IronTesseract()Ocr.Language = OcrLanguage.Amharic' Load a PDF and extract text.Using input = New OcrInput() input.AddPdf("example.pdf", "password") ' Optionally choose specific PDF page numbers for OCR if needed. ' Perform OCR and get results. DimResult = Ocr.Read(input) ' Output the recognized text and the page count to the console.Console.WriteLine(Result.Text)Console.WriteLine($"{Result.Pages.Count()} Pages")EndUsing
Imports IronOcr
' Initialize the OCR engine and set the language to Amharic.
Private Ocr = New IronTesseract()
Ocr.Language = OcrLanguage.Amharic
' Load a PDF and extract text.
Using input = New OcrInput()
input.AddPdf("example.pdf", "password")
' Optionally choose specific PDF page numbers for OCR if needed.
' Perform OCR and get results.
Dim Result = Ocr.Read(input)
' Output the recognized text and the page count to the console.
Console.WriteLine(Result.Text)
Console.WriteLine($"{Result.Pages.Count()} Pages")
End Using
using IronOcr;// Create an IronTesseract instance and set the language.varOcr = new IronTesseract();Ocr.Language = OcrLanguage.Amharic;// Load the multi-page TIFF file.using (varInput = new OcrInput()){Input.AddMultiFrameTiff("multi-frame.tiff"); // Process and read the input. varResult = Ocr.Read(Input); // Print the recognized text.Console.WriteLine(Result.Text);}
using IronOcr;
// Create an IronTesseract instance and set the language.
var Ocr = new IronTesseract();
Ocr.Language = OcrLanguage.Amharic;
// Load the multi-page TIFF file.
using (var Input = new OcrInput())
{
Input.AddMultiFrameTiff("multi-frame.tiff");
// Process and read the input.
var Result = Ocr.Read(Input);
// Print the recognized text.
Console.WriteLine(Result.Text);
}
ImportsIronOcr' Create an IronTesseract instance and set the language.PrivateOcr = New IronTesseract()Ocr.Language = OcrLanguage.Amharic' Load the multi-page TIFF file.UsingInput = New OcrInput()Input.AddMultiFrameTiff("multi-frame.tiff") ' Process and read the input. DimResult = Ocr.Read(Input) ' Print the recognized text.Console.WriteLine(Result.Text)EndUsing
Imports IronOcr
' Create an IronTesseract instance and set the language.
Private Ocr = New IronTesseract()
Ocr.Language = OcrLanguage.Amharic
' Load the multi-page TIFF file.
Using Input = New OcrInput()
Input.AddMultiFrameTiff("multi-frame.tiff")
' Process and read the input.
Dim Result = Ocr.Read(Input)
' Print the recognized text.
Console.WriteLine(Result.Text)
End Using
using IronOcr;// Create an IronTesseract instance.varOcr = new IronTesseract();// Enable barcode reading in the configuration.Ocr.Configuration.ReadBarCodes = true;// Load the image containing barcodes.using (var input = new OcrInput()){ input.AddImage("img/Barcode.png"); // Perform OCR to read both text and barcodes. varResult = Ocr.Read(input); // Loop through found barcodes and output their values. foreach (varBarcodeinResult.Barcodes) {Console.WriteLine(Barcode.Value); // Additional properties such as type and location are also available. }}
using IronOcr;
// Create an IronTesseract instance.
var Ocr = new IronTesseract();
// Enable barcode reading in the configuration.
Ocr.Configuration.ReadBarCodes = true;
// Load the image containing barcodes.
using (var input = new OcrInput())
{
input.AddImage("img/Barcode.png");
// Perform OCR to read both text and barcodes.
var Result = Ocr.Read(input);
// Loop through found barcodes and output their values.
foreach (var Barcode in Result.Barcodes)
{
Console.WriteLine(Barcode.Value);
// Additional properties such as type and location are also available.
}
}
ImportsIronOcr' Create an IronTesseract instance.PrivateOcr = New IronTesseract()' Enable barcode reading in the configuration.Ocr.Configuration.ReadBarCodes = True' Load the image containing barcodes.Using input = New OcrInput() input.AddImage("img/Barcode.png") ' Perform OCR to read both text and barcodes. DimResult = Ocr.Read(input) ' Loop through found barcodes and output their values. For EachBarcodeInResult.BarcodesConsole.WriteLine(Barcode.Value) ' Additional properties such as type and location are also available. NextBarcodeEndUsing
Imports IronOcr
' Create an IronTesseract instance.
Private Ocr = New IronTesseract()
' Enable barcode reading in the configuration.
Ocr.Configuration.ReadBarCodes = True
' Load the image containing barcodes.
Using input = New OcrInput()
input.AddImage("img/Barcode.png")
' Perform OCR to read both text and barcodes.
Dim Result = Ocr.Read(input)
' Loop through found barcodes and output their values.
For Each Barcode In Result.Barcodes
Console.WriteLine(Barcode.Value)
' Additional properties such as type and location are also available.
Next Barcode
End Using
using IronOcr;// Create an IronTesseract instance for reading specific page areas.varOcr = new IronTesseract();Ocr.Language = OcrLanguage.Amharic;using (varInput = new OcrInput()){ // Define the area of interest on the image. varContentArea = new System.Drawing.Rectangle() { X = 215, Y = 1250, Height = 280, Width = 1335 }; // These values are in pixels. // Add the area of interest to the OCR input.Input.Add("document.png", ContentArea); // Perform OCR and extract text within the given area. varResult = Ocr.Read(Input);Console.WriteLine(Result.Text);}
using IronOcr;
// Create an IronTesseract instance for reading specific page areas.
var Ocr = new IronTesseract();
Ocr.Language = OcrLanguage.Amharic;
using (var Input = new OcrInput())
{
// Define the area of interest on the image.
var ContentArea = new System.Drawing.Rectangle() { X = 215, Y = 1250, Height = 280, Width = 1335 };
// These values are in pixels.
// Add the area of interest to the OCR input.
Input.Add("document.png", ContentArea);
// Perform OCR and extract text within the given area.
var Result = Ocr.Read(Input);
Console.WriteLine(Result.Text);
}
ImportsIronOcr' Create an IronTesseract instance for reading specific page areas.PrivateOcr = New IronTesseract()Ocr.Language = OcrLanguage.AmharicUsingInput = New OcrInput() ' Define the area of interest on the image. DimContentArea = New System.Drawing.Rectangle() With { .X = 215, .Y = 1250, .Height = 280, .Width = 1335 } ' These values are in pixels. ' Add the area of interest to the OCR input.Input.Add("document.png", ContentArea) ' Perform OCR and extract text within the given area. DimResult = Ocr.Read(Input)Console.WriteLine(Result.Text)EndUsing
Imports IronOcr
' Create an IronTesseract instance for reading specific page areas.
Private Ocr = New IronTesseract()
Ocr.Language = OcrLanguage.Amharic
Using Input = New OcrInput()
' Define the area of interest on the image.
Dim ContentArea = New System.Drawing.Rectangle() With {
.X = 215,
.Y = 1250,
.Height = 280,
.Width = 1335
}
' These values are in pixels.
' Add the area of interest to the OCR input.
Input.Add("document.png", ContentArea)
' Perform OCR and extract text within the given area.
Dim Result = Ocr.Read(Input)
Console.WriteLine(Result.Text)
End Using
using IronOcr;varOcr = new IronTesseract();Ocr.Language = OcrLanguage.Amharic;// Load the low-quality image for OCR.using (varInput = new OcrInput(@"img\Potter.LowQuality.tiff")){ // Apply image processing to enhance OCR results.Input.DeNoise(); // Corrects pixel-level noise.Input.Deskew(); // Aligns the image to fix slanting. varResult = Ocr.Read(Input); // Output the extracted text.Console.WriteLine(Result.Text);}
using IronOcr;
var Ocr = new IronTesseract();
Ocr.Language = OcrLanguage.Amharic;
// Load the low-quality image for OCR.
using (var Input = new OcrInput(@"img\Potter.LowQuality.tiff"))
{
// Apply image processing to enhance OCR results.
Input.DeNoise(); // Corrects pixel-level noise.
Input.Deskew(); // Aligns the image to fix slanting.
var Result = Ocr.Read(Input);
// Output the extracted text.
Console.WriteLine(Result.Text);
}
ImportsIronOcrPrivateOcr = New IronTesseract()Ocr.Language = OcrLanguage.Amharic' Load the low-quality image for OCR.UsingInput = New OcrInput("img\Potter.LowQuality.tiff") ' Apply image processing to enhance OCR results.Input.DeNoise() ' Corrects pixel-level noise.Input.Deskew() ' Aligns the image to fix slanting. DimResult = Ocr.Read(Input) ' Output the extracted text.Console.WriteLine(Result.Text)EndUsing
Imports IronOcr
Private Ocr = New IronTesseract()
Ocr.Language = OcrLanguage.Amharic
' Load the low-quality image for OCR.
Using Input = New OcrInput("img\Potter.LowQuality.tiff")
' Apply image processing to enhance OCR results.
Input.DeNoise() ' Corrects pixel-level noise.
Input.Deskew() ' Aligns the image to fix slanting.
Dim Result = Ocr.Read(Input)
' Output the extracted text.
Console.WriteLine(Result.Text)
End Using
using IronOcr;// Create an instance of IronTesseract for OCR processing.varOcr = new IronTesseract();Ocr.Language = OcrLanguage.Amharic;// Prepare images and set OCR metadata.using (varInput = new OcrInput()){ input.Title = "Quarterly Report"; input.AddImage("image1.jpeg"); input.AddImage("image2.png"); input.AddImage("image3.gif"); // Perform OCR and save the recognized content as a searchable PDF. varResult = Ocr.Read(input);Result.SaveAsSearchablePdf("searchable.pdf");}
using IronOcr;
// Create an instance of IronTesseract for OCR processing.
var Ocr = new IronTesseract();
Ocr.Language = OcrLanguage.Amharic;
// Prepare images and set OCR metadata.
using (var Input = new OcrInput())
{
input.Title = "Quarterly Report";
input.AddImage("image1.jpeg");
input.AddImage("image2.png");
input.AddImage("image3.gif");
// Perform OCR and save the recognized content as a searchable PDF.
var Result = Ocr.Read(input);
Result.SaveAsSearchablePdf("searchable.pdf");
}
ImportsIronOcr' Create an instance of IronTesseract for OCR processing.PrivateOcr = New IronTesseract()Ocr.Language = OcrLanguage.Amharic' Prepare images and set OCR metadata.UsingInput = New OcrInput() input.Title = "Quarterly Report" input.AddImage("image1.jpeg") input.AddImage("image2.png") input.AddImage("image3.gif") ' Perform OCR and save the recognized content as a searchable PDF. DimResult = Ocr.Read(input)Result.SaveAsSearchablePdf("searchable.pdf")EndUsing
Imports IronOcr
' Create an instance of IronTesseract for OCR processing.
Private Ocr = New IronTesseract()
Ocr.Language = OcrLanguage.Amharic
' Prepare images and set OCR metadata.
Using Input = New OcrInput()
input.Title = "Quarterly Report"
input.AddImage("image1.jpeg")
input.AddImage("image2.png")
input.AddImage("image3.gif")
' Perform OCR and save the recognized content as a searchable PDF.
Dim Result = Ocr.Read(input)
Result.SaveAsSearchablePdf("searchable.pdf")
End Using
using IronOcr;// Create and configure an instance of IronTesseract for OCR.varOcr = new IronTesseract();Ocr.Language = OcrLanguage.Amharic;// Load a multi-frame TIFF file.using (varInput = new OcrInput()){ input.AddMultiFrameTiff("example.tiff"); // Read and convert the TIFF to a searchable PDF. varResult = Ocr.Read(input).SaveAsSearchablePdf("searchable.pdf");}
using IronOcr;
// Create and configure an instance of IronTesseract for OCR.
var Ocr = new IronTesseract();
Ocr.Language = OcrLanguage.Amharic;
// Load a multi-frame TIFF file.
using (var Input = new OcrInput())
{
input.AddMultiFrameTiff("example.tiff");
// Read and convert the TIFF to a searchable PDF.
var Result = Ocr.Read(input).SaveAsSearchablePdf("searchable.pdf");
}
ImportsIronOcr' Create and configure an instance of IronTesseract for OCR.PrivateOcr = New IronTesseract()Ocr.Language = OcrLanguage.Amharic' Load a multi-frame TIFF file.UsingInput = New OcrInput() input.AddMultiFrameTiff("example.tiff") ' Read and convert the TIFF to a searchable PDF. DimResult = Ocr.Read(input).SaveAsSearchablePdf("searchable.pdf")EndUsing
Imports IronOcr
' Create and configure an instance of IronTesseract for OCR.
Private Ocr = New IronTesseract()
Ocr.Language = OcrLanguage.Amharic
' Load a multi-frame TIFF file.
Using Input = New OcrInput()
input.AddMultiFrameTiff("example.tiff")
' Read and convert the TIFF to a searchable PDF.
Dim Result = Ocr.Read(input).SaveAsSearchablePdf("searchable.pdf")
End Using
የኦ.ሲ.አር.ሲ ውጤቶችን እንደ ኤችቲኤምኤል ይላኩ
OCR ምስል ወደ XHTML ልወጣ።
using IronOcr;// Create an IronTesseract instance and set the language to Amharic.varOcr = new IronTesseract();Ocr.Language = OcrLanguage.Amharic;// Initialize the OCR input and set properties.using (varInput = new OcrInput()){ input.Title = "Html Title"; input.AddImage("image1.jpeg"); // Perform OCR and save the result as an HTML file. varResult = Ocr.Read(input);Result.SaveAsHocrFile("results.html");}
using IronOcr;
// Create an IronTesseract instance and set the language to Amharic.
var Ocr = new IronTesseract();
Ocr.Language = OcrLanguage.Amharic;
// Initialize the OCR input and set properties.
using (var Input = new OcrInput())
{
input.Title = "Html Title";
input.AddImage("image1.jpeg");
// Perform OCR and save the result as an HTML file.
var Result = Ocr.Read(input);
Result.SaveAsHocrFile("results.html");
}
ImportsIronOcr' Create an IronTesseract instance and set the language to Amharic.DimOcrAs New IronTesseract()Ocr.Language = OcrLanguage.Amharic' Initialize the OCR input and set properties.UsingInputAs New OcrInput()Input.Title = "Html Title"Input.AddImage("image1.jpeg") ' Perform OCR and save the result as an HTML file. DimResult = Ocr.Read(Input)Result.SaveAsHocrFile("results.html")EndUsing
Imports IronOcr
' Create an IronTesseract instance and set the language to Amharic.
Dim Ocr As New IronTesseract()
Ocr.Language = OcrLanguage.Amharic
' Initialize the OCR input and set properties.
Using Input As New OcrInput()
Input.Title = "Html Title"
Input.AddImage("image1.jpeg")
' Perform OCR and save the result as an HTML file.
Dim Result = Ocr.Read(Input)
Result.SaveAsHocrFile("results.html")
End Using
using IronOcr;// Initialize IronTesseract for OCR operations.varOcr = new IronTesseract();Ocr.Language = OcrLanguage.Amharic;// Load a low-quality image for OCR.using (varInput = new OcrInput(@"LowQuality.jpeg")){ // Optimize the image for better OCR results.Input.DeNoise(); // Remove digital noise.Input.Deskew(); // Corrects image orientation. varResult = Ocr.Read(Input); // Print the extracted text.Console.WriteLine(Result.Text);}
using IronOcr;
// Initialize IronTesseract for OCR operations.
var Ocr = new IronTesseract();
Ocr.Language = OcrLanguage.Amharic;
// Load a low-quality image for OCR.
using (var Input = new OcrInput(@"LowQuality.jpeg"))
{
// Optimize the image for better OCR results.
Input.DeNoise(); // Remove digital noise.
Input.Deskew(); // Corrects image orientation.
var Result = Ocr.Read(Input);
// Print the extracted text.
Console.WriteLine(Result.Text);
}
ImportsIronOcr' Initialize IronTesseract for OCR operations.PrivateOcr = New IronTesseract()Ocr.Language = OcrLanguage.Amharic' Load a low-quality image for OCR.UsingInput = New OcrInput("LowQuality.jpeg") ' Optimize the image for better OCR results.Input.DeNoise() ' Remove digital noise.Input.Deskew() ' Corrects image orientation. DimResult = Ocr.Read(Input) ' Print the extracted text.Console.WriteLine(Result.Text)EndUsing
Imports IronOcr
' Initialize IronTesseract for OCR operations.
Private Ocr = New IronTesseract()
Ocr.Language = OcrLanguage.Amharic
' Load a low-quality image for OCR.
Using Input = New OcrInput("LowQuality.jpeg")
' Optimize the image for better OCR results.
Input.DeNoise() ' Remove digital noise.
Input.Deskew() ' Corrects image orientation.
Dim Result = Ocr.Read(Input)
' Print the extracted text.
Console.WriteLine(Result.Text)
End Using
// using IronOcr;// PM> Install IronOcr.Languages.Arabic// Create an IronTesseract instance and configure it to read Arabic.varOcr = new IronTesseract();Ocr.Language = OcrLanguage.Arabic;// Load images and apply OCR preprocessing if necessary.using (var input = new OcrInput()){ input.AddImage("img/arabic.gif"); // Apply additional image processing filters if needed. // IronTesseract can read images even with low quality. // Perform OCR and get the result. varResult = Ocr.Read(input); // Save the recognized text as Arabic can be problematic on certain Windows consoles.Result.SaveAsTextFile("arabic.txt");}
// using IronOcr;
// PM> Install IronOcr.Languages.Arabic
// Create an IronTesseract instance and configure it to read Arabic.
var Ocr = new IronTesseract();
Ocr.Language = OcrLanguage.Arabic;
// Load images and apply OCR preprocessing if necessary.
using (var input = new OcrInput())
{
input.AddImage("img/arabic.gif");
// Apply additional image processing filters if needed.
// IronTesseract can read images even with low quality.
// Perform OCR and get the result.
var Result = Ocr.Read(input);
// Save the recognized text as Arabic can be problematic on certain Windows consoles.
Result.SaveAsTextFile("arabic.txt");
}
' using IronOcr;' PM> Install IronOcr.Languages.Arabic' Create an IronTesseract instance and configure it to read Arabic.DimOcr = New IronTesseract()Ocr.Language = OcrLanguage.Arabic' Load images and apply OCR preprocessing if necessary.Using input = New OcrInput() input.AddImage("img/arabic.gif") ' Apply additional image processing filters if needed. ' IronTesseract can read images even with low quality. ' Perform OCR and get the result. DimResult = Ocr.Read(input) ' Save the recognized text as Arabic can be problematic on certain Windows consoles.Result.SaveAsTextFile("arabic.txt")EndUsing
' using IronOcr;
' PM> Install IronOcr.Languages.Arabic
' Create an IronTesseract instance and configure it to read Arabic.
Dim Ocr = New IronTesseract()
Ocr.Language = OcrLanguage.Arabic
' Load images and apply OCR preprocessing if necessary.
Using input = New OcrInput()
input.AddImage("img/arabic.gif")
' Apply additional image processing filters if needed.
' IronTesseract can read images even with low quality.
' Perform OCR and get the result.
Dim Result = Ocr.Read(input)
' Save the recognized text as Arabic can be problematic on certain Windows consoles.
Result.SaveAsTextFile("arabic.txt")
End Using
የብዙ ቋንቋ ምሳሌ
Multiple languages recognition can be done using IronOCR, helpful for handling documents with mixed languages, such as English, HTML in documents, etc.
// using IronOcr;// PM> Install IronOcr.Languages.ChineseSimplifiedvarOcr = new IronTesseract();Ocr.Language = OcrLanguage.ChineseSimplified;Ocr.AddSecondaryLanguage(OcrLanguage.Amharic);// You can add any number of secondary languages for mixed content OCR.using (var input = new OcrInput()){ input.Add("multi-language.pdf"); varResult = Ocr.Read(input);Result.SaveAsTextFile("results.txt");}
// using IronOcr;
// PM> Install IronOcr.Languages.ChineseSimplified
var Ocr = new IronTesseract();
Ocr.Language = OcrLanguage.ChineseSimplified;
Ocr.AddSecondaryLanguage(OcrLanguage.Amharic);
// You can add any number of secondary languages for mixed content OCR.
using (var input = new OcrInput())
{
input.Add("multi-language.pdf");
var Result = Ocr.Read(input);
Result.SaveAsTextFile("results.txt");
}
' using IronOcr;' PM> Install IronOcr.Languages.ChineseSimplifiedDimOcr = New IronTesseract()Ocr.Language = OcrLanguage.ChineseSimplifiedOcr.AddSecondaryLanguage(OcrLanguage.Amharic)' You can add any number of secondary languages for mixed content OCR.Using input = New OcrInput() input.Add("multi-language.pdf") DimResult = Ocr.Read(input)Result.SaveAsTextFile("results.txt")EndUsing
' using IronOcr;
' PM> Install IronOcr.Languages.ChineseSimplified
Dim Ocr = New IronTesseract()
Ocr.Language = OcrLanguage.ChineseSimplified
Ocr.AddSecondaryLanguage(OcrLanguage.Amharic)
' You can add any number of secondary languages for mixed content OCR.
Using input = New OcrInput()
input.Add("multi-language.pdf")
Dim Result = Ocr.Read(input)
Result.SaveAsTextFile("results.txt")
End Using
ዝርዝር ዝርዝር የ “OCR” ውጤቶች ነገሮች
IronOCR returns a detailed object model for every OCR result output, valuable for developers who want to understand or incorporate text recognized from images in their software products.
using IronOcr;using System.Drawing; // Make sure to include the AssemblyvarOcr = new IronTesseract();Ocr.Language = OcrLanguage.Amharic;Ocr.Configuration.EngineMode = TesseractEngineMode.TesseractAndLstm;Ocr.Configuration.ReadBarCodes = true; // Set to true to read barcodes.using (varInput = new OcrInput(@"images\sample.tiff")){ OcrResultResult = Ocr.Read(Input); varPages = Result.Pages; varWords = Pages[0].Words; varBarcodes = Result.Barcodes; // A comprehensive API for retrieving text, blocks, paragraphs, lines, words, chars // as well as detailed input-output statistics and meta can be accessed here.}
using IronOcr;
using System.Drawing; // Make sure to include the Assembly
var Ocr = new IronTesseract();
Ocr.Language = OcrLanguage.Amharic;
Ocr.Configuration.EngineMode = TesseractEngineMode.TesseractAndLstm;
Ocr.Configuration.ReadBarCodes = true; // Set to true to read barcodes.
using (var Input = new OcrInput(@"images\sample.tiff"))
{
OcrResult Result = Ocr.Read(Input);
var Pages = Result.Pages;
var Words = Pages[0].Words;
var Barcodes = Result.Barcodes;
// A comprehensive API for retrieving text, blocks, paragraphs, lines, words, chars
// as well as detailed input-output statistics and meta can be accessed here.
}
ImportsIronOcrImportsSystem.Drawing' Make sure to include the AssemblyPrivateOcr = New IronTesseract()Ocr.Language = OcrLanguage.AmharicOcr.Configuration.EngineMode = TesseractEngineMode.TesseractAndLstmOcr.Configuration.ReadBarCodes = True ' Set to true to read barcodes.UsingInput = New OcrInput("images\sample.tiff") DimResultAsOcrResult = Ocr.Read(Input) DimPages = Result.Pages DimWords = Pages(0).Words DimBarcodes = Result.Barcodes ' A comprehensive API for retrieving text, blocks, paragraphs, lines, words, chars ' as well as detailed input-output statistics and meta can be accessed here.EndUsing
Imports IronOcr
Imports System.Drawing ' Make sure to include the Assembly
Private Ocr = New IronTesseract()
Ocr.Language = OcrLanguage.Amharic
Ocr.Configuration.EngineMode = TesseractEngineMode.TesseractAndLstm
Ocr.Configuration.ReadBarCodes = True ' Set to true to read barcodes.
Using Input = New OcrInput("images\sample.tiff")
Dim Result As OcrResult = Ocr.Read(Input)
Dim Pages = Result.Pages
Dim Words = Pages(0).Words
Dim Barcodes = Result.Barcodes
' A comprehensive API for retrieving text, blocks, paragraphs, lines, words, chars
' as well as detailed input-output statistics and meta can be accessed here.
End Using
አፈፃፀም
IronOCR operates efficiently and does not require pre-processing images outside the Iron package, boasting performance consistent with new hardware optimizations.
The speed is significantly improved with IronOCR.2020, providing faster recognition and a significantly improved accuracy compared to earlier build versions.
የበለጠ ለመረዳት
To gain further insights on using OCR in C#, VB, F#, or any .NET language, explore our community tutorials showcasing real-world examples and best practices for utilizing IronOCR.
커티스 차우는 칼턴 대학교에서 컴퓨터 과학 학사 학위를 취득했으며, Node.js, TypeScript, JavaScript, React를 전문으로 하는 프론트엔드 개발자입니다. 직관적이고 미적으로 뛰어난 사용자 인터페이스를 만드는 데 열정을 가진 그는 최신 프레임워크를 활용하고, 잘 구성되고 시각적으로 매력적인 매뉴얼을 제작하는 것을 즐깁니다.